Cache domain-specific javascripts (say jQuery) and CSS at client side browsers? -
is there way enforce caching of js (say jquery) , css files on browsers particular domain (same way, can store cookies @ client side particular domain)?
as know such files change , caching @ client side browsers boost page-rendering speed significantly..
most browsers handle automatically, , don't need worry it. that's why it's idea use common javascript libraries cdn instead of serving them own version.
if want more control on how caching handled, can send expires headers along content. accepted answer here has information how using .htaccess. if server doesn't support .htaccess files, can still via code directly.
if explicitly setting expires headers, make sure you're done developing site, or make sure disable caching in browser you're working on
Comments
Post a Comment