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=1" is different path than "style.css?ver=2". This technique works with all files: javascript, swf, images etc.

<link href="style.css?ver=1" rel="stylesheet" />
<script src="script.js?ver=1"></script>
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">