Removing HTML5 Offline AppCache

一个人想着一个人 提交于 2021-02-05 20:54:10

问题


I have an HTML document with an associated appcache manifest. But now I want to get rid of offline application caching for a while.

If I remove mention of the manifest from the <html> tag, browsers that already have a cached version will continue to use that cached version.

If I update the appcache manifest, well, whatever, there is still an appcache.

What is the most sensible way to go about removing offline application caching? I suppose that I could just change the manifest to have no entries other than:

NETWORK:
*

Then it won't actually cache anything.

But surely there must be a way to get rid of the appcache and the manifest file altogether, no?


回答1:


You simply need to remove the appcache manifest from your server. If the browser can't access the manifest file, it will stop caching your app and remove all cached data.

Some useful information from two sites:

If the manifest file itself can't be retrieved, the cache will ignored and all cached data associated with it will be disregarded.

http://appcache.offline.technology/

Application caches can also become obsolete. If the manifest is removed from the server, the browser removes all application caches that use that manifest, then sends an "obsoleted" event to the application cache object. Then the application cache's status is set to OBSOLETE.

https://developer.mozilla.org/en/Offline_resources_in_Firefox




回答2:


FOR anyone coming across this question and who've deleted the appcache manifest, deleted the browser's cache and removed the manifest from the server and the reference to it in the HTML: If this still did not cause your HTML document to load the update version in Google Chrome, you can go to chrome://appcache-internals/ in your browser and click REMOVE next to the manifest you wish to get rid of.




回答3:


Manually delete app cache: Only for Chrome

Enter the follow URL in your chrome browser: chrome://appcache-internals/

There you will see a list of every application cache you have in storage with the possibility to remove any of them.

Reference




回答4:


In modern Firefox you can manipulate the offline cache with Edit Preferences Advanced Network.

In windows it is now (v27.01) Tools Options Advanced Network



来源:https://stackoverflow.com/questions/7937736/removing-html5-offline-appcache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!