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
- concatenate , compress assets
- change filenames of assets, example add hash based on contents, app.js becomes app.abc456.js
- 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
Post a Comment