Is there a way I can put some code on my page so when someone visits a site, it clears the browser cache, so they can view the changes?
Languages used: ASP.NET, VB.NET, and of course HTML, CSS, and jQuery.
browsercachinghtmlmeta-tags
Is there a way I can put some code on my page so when someone visits a site, it clears the browser cache, so they can view the changes?
Languages used: ASP.NET, VB.NET, and of course HTML, CSS, and jQuery.
Best Answer
If this is about
.css
and.js
changes, one way is to to "cache busting" is by appending something like "_versionNo
" to the file name for each release. For example:Or alternatively do it after the file name:
You can check out this link to see how it could work.