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
Post a Comment