永久删除HTML5 Appcache清单 [英] Removing HTML5 Appcache Manifest, Permanently

查看:84
本文介绍了永久删除HTML5 Appcache清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上设置了一个应用程序缓存,不久后我意识到它的方式更加激进。我想删除它。永久性。



我已经读过,使用正确的MIMETYPE传递已更改的清单文件,完全为空,将删除缓存。 编辑:见下文。 Maurice的答案是唯一一致的解决方案。



这是最快,最有效的解决方案吗?有没有更好的方法?



如果您可以在回答之前指定是否实际使用过此功能,我会非常感激 - 模糊的文档和奇怪的是,在测试过程中没有显示出什么让我陷入了这种情况。 解决方案

诀窍是首先更改清单URL在您的HTML页面中无效,因此浏览器在加载时会收到404。确保还要更改原始的清单,否则新的HTML页面从不下载。浏览器无法下载新的清单URL后,您可以从HTML页面中完全删除清单设置。



有点古怪,但似乎是唯一可靠的方法删除现有的清单参考。


I setup an Application Cache on a site and shortly thereafter realized its way more aggressive that I realized. I want to remove it. Permanently.

I've read that passing a changed manifest file, completely empty, with the correct MIMETYPE will remove the cache. Edit: See below. Maurice's answer is the only consistent fix.

Is this the fastest, most effective solution? Is there a better way?

And if you can specify whether or not you've actually used this functionality before with your answer I'd really appreciate it - ambiguous documentation and quirky that didn't show during testing are what got me into this situation.

解决方案

The trick is to first change the manifest URL in your HTML page to something invalid so the browser will receive a 404 when loading it. Make sure to also change the original manifest otherwise the new HTML page is never downloaded. After the browser has failed to download the new manifest URL you can completely remove the manifest setting from the HTML page.

Kind of wacky but that seems to be the only reliable way of removing an existing manifest reference.

这篇关于永久删除HTML5 Appcache清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆