Reputation: 307
Here's my problem.
I am working on a web application and want to use HTML5 AppCache feature to cache files on client side.
To do that i add reference to appcache file in manifest tag of HTML.
Now, what i want is to manage multiple appcache files on the server with different version and allow user to update if and when they require.
So, when user will launch an application i want to check if there is a newer version of appcache (so server will have 2 different files say v1 and v2 with v1 mentioned in manifest tag) available and if so, ask user if they want to update if so, then update cache with this new version(v2).
Upvotes: 1
Views: 629
Reputation: 75707
Browsers will already check for a new version of the manifest every time the app starts, there's no need for you to implement it yourself, it's the default behaviour.
If you want to have explicit control over the downloading of updates use the Application Cache API in your app and hook into the events where you want to provide a UI for the user.
Upvotes: 2