I am working on an ipad webapp that will receive monthly changes. However, I cannot figure out how to allow the user to decide whether to update the cache or not. The iPad tends to just go ahead and update when it notices a manifest file change. I would like to prevent this, so users who have not finished reading this monthly version can be updated when they like it. I was looking for a solution to this question, but I did not find any useful information.
As my application is configured, I have a content page that retrieves data from the database, and all other files (upload from media added to the content page) is static.
I have cache.manifest with every file in it, and the version number is automatically changed when updating at the top of the comment.
Thus, updating the content means a new manifest, which means that the updateReady event is fired. If anyone could give me any instructions on how to catch this and prevent it from automatically switching to the new version, that would be nice.
Thank!
source
share