Search code examples
htmloffline-caching

HTML5 Offline Cache only certain files


I am trying to use the offline cache but only want to cache certain files. The files & pages that I have explicitly specified in CACHE: section of the manifest are all fine. But the browser also always caches files in the 'Master' cache. I don't want these caches, they should always be requested from the server. How can I stop them being cached?


Solution

  • Do the pages that are being cached have the manifest attribute on the HTML element? If so, that would cause them to be cached regardless if you have a specific entry in the CACHE section or not.