Solved

caching web app - load from cache unless a new version is published

Posted on 2015-02-19
1
69 Views
Last Modified: 2015-03-09
I have a web app
Its pretty heavy in size, so caching is good, whenever we do a release we have to clear the browser cache to load the new version
I dont want to force loading of content everytime someone logs in, so i'm wondering what options i have

thinking purely in terms of ways it could work, i'm wondering if i could store a version number in cookies, and it would request version number when loading login page..... if its the same then use the cache, if not, then dont use the browser cache

is this even possible?
Whats the best way to do it?
0
Comment
Question by:websss
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40621708
You should be able to implement what you want using appCache.  While the intended purpose of appCache is to allow offline use of apps, it should work for this because it is basically a dated manifest of the app, and the server can trigger updates.

Details of how it works:
https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache

Cd&
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question