modify the local Appcache in the client side using javascript? -
Is it possible to modify the native app cache in the client side using javascript? Every time I need to update app cache to see the client or add a new item. For example, edit is my app cache file: The question is how to update the manifest and add a new line to it To add a new file to store without server side interference: What do you want to do, The main warning is that every time you update your cache, it will change a whole lot rather than the new files you add. The code is very simple to force the browser to read the new Apkach file: I suggest reading for more information.
cache MANIFEST # 2014-02-13 v13.0.0 CACHE: #html http: // cdnjs. Cloudflare.com /ajax/libs/jquery/2.1.0/jquery.js animation.js test.css
CACHE MANIFEST # 2014-02-13 v13.0.0 CACHE: #HTML http: // Cdnjs.cloudflare Com / ajax / libs / jquery / 2.1.0 / jquery.js animation.js test.css http://download.support.xerox.com/pub/docs/FlowPort2/user Docs / any-os / en /fp_dc_setup_guide.pdf
function update cache () {var applek = window.applicationCache; AppCache.update (); If (appCache.status == window.applicationCache.UPDATEREADY) {appCache.swapCache (); }}
Comments
Post a Comment