How to specify resource library version in JSF2?
Say I have a resources/ folder in the webroot. In it, I have a css/ folder and in it there is a theme.css file. But I want to set an Expires: header. Therefore I want to use a version for resource libraries, say <h:outputStylesheet library="css" name="theme.css"/> would turn into <link rel="stylesheet" src="javax.faces.resources/theme.css.xhtml?ln=css"/> But I want to specify something like <h:outputStylesheet library="css" name="theme.css" version="1.2"/> And get <link rel="stylesheet" src="javax.faces.resources/theme.css.xhtml?ln=css&v=1_2"/> or similar. I have read that JSF2 has support for