Force browser to reload file

Adding the parameter to the filename forcing browser to reload file without using the cached one, because "style.css?ver=2" is different path than "style.css". This technique works with all files: javascript, swf, images etc.

<link href="style.css?ver=2" rel="stylesheet" />

<script src="script.js?ver=2"></script>

<img src="logo.png?ver=2" />

Leave a Reply

Your email address will not be published. Required fields are marked *