I am currently in the process of improving my grails website performance and following many best practices I found on the internet, I currently need to make a decision between two solutions before refactoring my code
Solution 1 : Export all of my static resources (js, css, images) to a separate domain and server (as already done by SO team - see here).
Solution 2 : Just keep my resources into my WAR file and configure apache to act as a reverse/caching proxy so that incoming requests to /images, /css, /js etc are all cached by apache.
What do you recommend and what are the pros and cons?
PS: Concerning solution 1, is there any web hosting providers specialized for static content out there?
Thank you.