Re: CDN + JSF 2 resources

Splash Forums Rewrite Users CDN + JSF 2 resources Re: CDN + JSF 2 resources

#22448

Yes, this is possible using the new CDN rule.

.addRule(CDN.relocate("/javax.faces.resource/jquery/jquery.js.jsf")
.to("http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js "))

Unfortunately there is currently no documentation. But I think the integration tests should explain how it works:

https://github.com/ocpsoft/rewrite/blob/master/impl-servlet/src/test/java/org/ocpsoft/rewrite/servlet/config/CDNConfigurationProvider.java