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:

  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   

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:

  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    

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:

  function update cache () {var applek = window.applicationCache; AppCache.update (); If (appCache.status == window.applicationCache.UPDATEREADY) {appCache.swapCache (); }}   

I suggest reading for more information.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -