English 中文(简体)
不要用缓存列表缓存当前(索引)页面
原标题:Don t cache current (index) page with cache manifest

默认情况下, 当使用缓存列表时, 浏览器也会缓存当前( HTML) 页面。 我该如何做?

我的网站看起来像地址栏中的 domain.com/ ,但它实际上正在服务 domain.com/index.php

NETWORK
/
*

NETWORK
/index.php
*

...和 variants like index.html, index.php without the leading slash, etc. (The manifest is working fine otherwise -- it s properly caching some files listed under the CACHE: heading, it s being served with the correct MIME type, etc.)

最佳回答

不要在索引.php 中放置列表引用。 将其放在您想要缓存的页面中, 或者您不介意缓存, 并在索引.php 页面上装入 iframe

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签