javascript - Prevent appcache cache current page -


i trying use appcache cache of webpage resources files (js, css) speed webpage loading. however, problem appcache cache current webpage. brings problem viewed webpage not date. how can prevent appcache caching current page, resources listed in manifest?

my manifest sample:

cache manifest # version 1 cache: # list of resources file (js/ css) path  network: * http://* https://* 

what can have conditional logic on manifest-attribute in html-tag, don't set manifest page don't want cached. used login screens etc.

e.g.:

<html  <?php if(!dontcachethispage) echo 'manifest="yourmanifest.appcache"'; ?> > 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -