Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't cache current (index) page with cache manifest

By default, when a cache manifest is used the browser will also cache the current (HTML) page. How do I not do that?

My site looks like domain.com/ in the address bar but it is actually serving domain.com/index.php. I have tried:

NETWORK
/
*

and

NETWORK
/index.php
*

...and 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.)

like image 592
craigpatik Avatar asked May 23 '12 21:05

craigpatik


1 Answers

Don't put the manifest reference in your index.php. Put it in a page you do want cached, or that you don't mind having cached, and load that page in an iframe on your index.php page.

like image 160
robertc Avatar answered Oct 04 '22 17:10

robertc