cache-manifest

Omit current page from HTML5 offline appcache but use cached resources

旧街凉风 提交于 2019-11-29 19:42:06
问题 For performance purposes, I want to have some of my web pages use resources that have been cached for offline use (images, CSS, etc.) but to not have the page itself cached as the content will be generated dynamically. One way to do this would be to refactor my pages so that they load the dynamic content via AJAX or by looking things up in LocalStorage. Details may vary, but broadly speaking, something like that. If it's possible, I'd prefer to find a way to simply instruct the browser to use

My HTML5 Application Cache Manifest is caching everything

让人想犯罪 __ 提交于 2019-11-26 21:52:34
UPDATE: ** I posted this question when this feature was really new, I realize now that this feature should not be used this way unless it is used via JavaScript. but seems like this hack is a great solution for most beginners who make the same mistake and misuse of this feature. If you want to cache everything except your HTML this should be done with JS or you could use the solution below ** I guess my question boils down to this: If the file referencing the manifest using the manifest attribute of the HTML tag falls under the MASTER CACHE ENTRIES how could you have a dynamic page use the