The manifest is checked twice during an update, once at the start and once after all cached files have been updated. You must modify the manifest file itself to inform the browser to refresh cached files.Īvoid using a continually-updating timestamp or random string to force updates every time. So for example, if you edit an image resource or change a JavaScript function, those changes will not be re-cached. An application's cache is only updated when its manifest file changes. Lines starting with a '#' are comment lines, but can also serve another purpose. # offline.html will be served in place of all other. # offline.jpg will be served in place of all images in images/large/ # static.html will be served if main.py is inaccessible # Resources that require the user to be online. Lets take a look at a more complex example: CACHE MANIFEST The browser will keep using the old application cache in the event of failure.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |