【问题标题】:Cache manifest caches network files缓存清单缓存网络文件
【发布时间】:2013-12-26 22:16:40
【问题描述】:

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

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 缓存方面遇到了一些问题,所以我清除了缓存并在 Google Chrome 中打开了控制台,然后我重新加载了页面。

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 部分下。

如何防止任何浏览器缓存此文件?

【问题讨论】:

  • 您的清单文件是否引用自 index.php 本身??

标签: php html caching browser-cache cache-manifest


【解决方案1】:

您不能 - 引用 appcache 清单的页面将始终被缓存,即使您指定它不被缓存。

见 6.7.3.3 的绿色部分,略低于 32。这里:http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests

【讨论】:

    猜你喜欢
    • 2011-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-30
    • 2012-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多