I’ve started to use PrettyFaces with JSF 2 and encountered a big problem. Maybe I’m doing something wrong. I want to avoid resource caching (JS, CSS files) and use in my web app JSF 2 tag h:outputStylesheet / h:outputScript with a special prepared URL:
Get rid of this xtime=… thing in the url and simply make sure, you’re resources are put in /resources/yourlibrary/1287054180000/ip-jsftoolkit.js when creating the war.
jsf’s resource loading will automatically find the newest version and append a version=1287054180000 to the generated url which then gets resolved back and your resource is displayed. no need to do anything with prettyfaces here.
v=20101014184544_0 is not the part of URL. It’s in the query string. Such URLs are sometimes not cached at all (if e.g. tomcat with apache). I want to cache resources until the version is the same. This is my intention.