html5 - Using application cache for storing CSS and Javascript files in MVC web application -


i'm using lot of frameworks in website (knockout, bootstrap, jquery, jquery ui etc) causing load slow. practice store these javascript files (ex knockout.js) , associated css files(ex bootstrap.css) in application cache. looked in browser's application cache , of them store sprites, yet come across js caching

using applicationcache won't improve load time application, that's cache headers for. best practice here to

  1. concatenate , compress assets
  2. change filenames of assets, example add hash based on contents, app.js becomes app.abc456.js
  3. set cache headers cache these assets ever. file names change each time, won't have problems it.

"the applicationcache douchebag": http://alistapart.com/article/application-cache-is-a-douchebag

unless have make app work offline, trust me, it's not worth it.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -