我的缓存清单文件存在问题。这就是它的样子(一些文件已从列表中删除,使其缩短):
I'm having an issue with my cache manifest file. This is what it looks like (some files have been removed from the list to make it shorter):
CACHE MANIFEST #r8 CACHE: fonts/glyphicons-halflings-regular.svg fonts/glyphicons-halflings-regular.eot fonts/glyphicons-halflings-regular.ttf fonts/glyphicons-halflings-regular.woff css/bootstrap.min.css css/receipt.min.css css/smoothness/jquery-ui-1.10.3.custom.css NETWORK: index.php * *我在使用index.php缓存方面遇到了一些麻烦,所以我清理了缓存并在谷歌浏览器中打开了控制台,然后我重新加载了页面。
I've had some trouble with index.php caching so I cleared my cache and opened the console in Google Chrome, then I reloaded the page.
Application Cache Progress event (12 of 13) www.magnusburton/stackd/index.php:1 Application Cache Progress event (13 of 13) Application Cache UpdateReady event我能做什么看,看起来Chrome仍然在缓存index.php,即使它是在 NETWORK 部分。
From what I can see, it looks like Chrome is still caching index.php even if it's under the NETWORK section.
如何阻止任何浏览器缓存此文件?
How can I prevent any browser from caching this file?
推荐答案你不能 - 引用appcache清单的页面将始终被缓存,即使你指定它不被缓存。
You can't - The page referencing the appcache manifest will always get cached, even though you specify it to not get cached.
参见6.7.3.3的绿色部分,正好在32以下。这里: www.whatwg/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests
See green section of 6.7.3.3, just below 32. here: www.whatwg/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests
更多推荐
缓存清单缓存网络文件
发布评论