javascript - Cache busting via params -
we want cache bust on production deploys, not waste bunch of time off bat figuring out system doing so. thought apply param end of css , js files current version number:
<link rel="stylesheet" href="base_url.com/file.css?v=1.123"/>
two questions: break cache? param cause browser never cache response url since param indicates dynamic content?
the param ?v=1.123
indicates query string, , browser therefore think new path from, say, ?v=1.0
. causing load file, not cache. want.
and, browser assume source stay same next time call ?v=1.123
, should cache string. remain cached, server set up, until move ?v=1.124
or on.
Comments
Post a Comment