Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat does appending "?v=1" to CSS and Javascript URLs in link and script tags do?
    text
    copied!<p>I have been looking at a HTML 5 boilerplate template (from <a href="http://html5boilerplate.com/" rel="noreferrer">http://html5boilerplate.com/</a>) and noticed the use of <code>"?v=1"</code> in URLs when referring to CSS and Javascript files.</p> <ol> <li>What does appending <code>"?v=1"</code> to CSS and Javascript URLs in link and script tags do?</li> <li>Not all Javascript URLs have the <code>"?v=1"</code> (example from the sample below: <code>js/modernizr-1.5.min.js</code>). Is there a reason why this is the case?</li> </ol> <p>Sample from their <code>index.html</code>:</p> <pre><code>&lt;!-- CSS : implied media="all" --&gt; &lt;link rel="stylesheet" href="css/style.css?v=1"&gt; &lt;!-- For the less-enabled mobile browsers like Opera Mini --&gt; &lt;link rel="stylesheet" media="handheld" href="css/handheld.css?v=1"&gt; &lt;!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements &amp; feature detects --&gt; &lt;script src="js/modernizr-1.5.min.js"&gt;&lt;/script&gt; &lt;!------ Some lines removed ------&gt; &lt;script src="js/plugins.js?v=1"&gt;&lt;/script&gt; &lt;script src="js/script.js?v=1"&gt;&lt;/script&gt; &lt;!--[if lt IE 7 ]&gt; &lt;script src="js/dd_belatedpng.js?v=1"&gt;&lt;/script&gt; &lt;![endif]--&gt; &lt;!-- yui profiler and profileviewer - remove for production --&gt; &lt;script src="js/profiling/yahoo-profiling.min.js?v=1"&gt;&lt;/script&gt; &lt;script src="js/profiling/config.js?v=1"&gt;&lt;/script&gt; &lt;!-- end profiling code --&gt; </code></pre> <p>Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload