To improve performance, I want some of my web pages to use resources that were cached for offline use (images, CSS, etc.), but should not be cached by the page itself, because the content will be generated dynamically.
One way to do this is to reorganize my pages so that they load dynamic content through AJAX or view things in LocalStorage. Details may vary, but overall, something like that.
If possible, I would prefer to find a way to simply tell the browser to use cached resources (again images, CSS, etc.) for the page, but not actually cache the (dynamically generated) HTML content itself.
Is there a way to do this using standalone HTML5 appcache? I get the impression that the answer is no, because:
- Any page containing a manifest will be cached, so I cannot specify cached resources on the page itself.
- It is not possible to tell the previous page to "use offline resources for this other page, but not actually cache the HTML on this page." You must specify the page itself, which means that HTML will be cached.
Am I really wrong? There seems to be some tricky (or not so tricky) way around this. Now that I typed it, I wonder if the included page will explicitly do the trick in the NETWORK section of the appcache manifest.
Trott
source share