【发布时间】: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