缓存清单缓存网络文件

编程入门 行业动态 更新时间:2024-10-05 19:09:25
本文介绍了缓存清单缓存网络文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

更多推荐

缓存清单缓存网络文件

本文发布于:2023-11-26 18:55:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634779.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓存   清单   文件   网络

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!