缓存清单缓存网络文件 [英] Cache manifest caches network files

查看:132
本文介绍了缓存清单缓存网络文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的缓存清单文件存在问题。这就是它的样子(一些文件已从列表中删除,使其缩短):

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
*
http://*

我在使用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) http://www.magnusburton.com/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以下。这里: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests

See green section of 6.7.3.3, just below 32. here: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests

这篇关于缓存清单缓存网络文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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