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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -