title: How to specify resource library version in JSF2?
body: <p>Say I have a <code>resources/</code> folder in the webroot. In it, I have a <code>css/</code> folder and in it there is a <code>theme.css</code> file.</p>
  
  <p>But I want to set an <code>Expires:</code> header. Therefore I want to use a version for resource libraries, say</p>
  
  <pre><code>&lt;h:outputStylesheet library="css" name="theme.css"/&gt;
  </code></pre>
  
  <p>would turn into</p>
  
  <pre><code>&lt;link rel="stylesheet" src="javax.faces.resources/theme.css.xhtml?ln=css"/&gt;
  </code></pre>
  
  <p>But I want to specify something like</p>
  
  <pre><code>&lt;h:outputStylesheet library="css" name="theme.css" version="1.2"/&gt;
  </code></pre>
  
  <p>And get</p>
  
  <pre><code>&lt;link rel="stylesheet" src="javax.faces.resources/theme.css.xhtml?ln=css&amp;v=1_2"/&gt;
  </code></pre>
  
  <p>or similar. I have read that JSF2 has support for resource versioning, but <strong>how</strong> do I specify which version to load, and <strong>where</strong> do I put the files?</p>