Do not cache current (index) page with cache manifest

By default, when the cache manifest is used, the browser also caches the current (HTML) page. How to do this not ?

My site looks like domain.com/ in the address bar, but it actually serves as domain.com/index.php . I tried:

 NETWORK / * 

and

 NETWORK /index.php * 

... and options like index.html, index.php, without a slash, etc. (the manifest works fine otherwise - it caches some of the files listed under the CACHE: header properly, it is served using the correct MIME type, etc.)

+6
source share
1 answer

Do not put the manifest link in your index.php. Put it on the page that you want to cache, or that you do not mind caching, and load this page in an iframe on the index.php page.

+4
source

Source: https://habr.com/ru/post/916500/


All Articles