browser cache - Javascript cached -


when updates in .js, clients browser old version , have press ctrl + f5 clean cache , browser can download new version.

i know browsers, once cached, doesn't download doc same name. have 100 web pages js , question is: -do have create versions of js, doc.1.3.js? if yes, in case, have upload 100 pages every time change js. -how you, developers, threat issue, considering easy way maintence , control version?

google has write on caching, specifically, using http headers cache-control: max-age, , last-modified: browser check, , latest files when needed. in case, , in peoples cases, whenever last-modified.

https://developers.google.com/speed/docs/best-practices/caching

if need more info on http headers, i've found helpful in past: http://net.tutsplus.com/tutorials/other/http-headers-for-dummies/


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -