Search code examples
grailsgrails-pluginstatic-resource

Can I use UIPerformance grails plugin and host my static resources in another domain?


The UIPerfomance plugin is an easy way to speed up your web pages by applying some of the best practices rules from Yahoo performance team (like minifying, setting a far-future expires header, versioned images...)

Unfortunately I didn't find a way to store the static resources in a location outside of the webapplication which has his own advantages ( smaller WAR sizes, better optimize cookieless server, static resources served faster by a highly optimized native httpd, no need to redeploy WAR when updating static resources..).

So my question is:

is it possible to use this great plugin with static resoures stored outside the web application? And if yes, how?


Solution

  • Well it seems that a JIRA issue was raised for this (see here)

    Thanks to Oliver Weichhold, there is also a patch that allows combining UIPerformance plugin with another dedicated domain for static resources