appcache 是否自动使不在清单中的文件失效

Does appcache auto invalidate files not in manifest

假设在清单的第一个版本中,我们有文件调用 abc.css。随后,在清单的第二个版本中,我们删除 abc.ss 并附加新文件 def.css 。当用户第二次访问该网站时,浏览器是否会自动使 abc.ss 失效并从浏览器的缓存列表中删除?

没有。使用应用程序缓存缓存文件后。它们保留在缓存中,浏览器甚至不会联系服务器来验证文件或查看是否进行了任何更改。

如果您需要修改由应用程序缓存缓存的文件,那么您需要修改您的清单文件。

来自http://www.html5rocks.com/en/tutorials/appcache/beginner/

You must modify the manifest file itself to inform the browser to refresh cached files.