I am currently working on improving grails website quality and following the many best practices that I have found on the Internet, I currently need to make a decision between the two solutions before refactoring my code
Solution 1 : export all my static resources (js, css, images) to a separate domain and server (as has already been done by the SO command - see here ).
Solution 2 : just save my resources into my WAR file and configure apache on both the reverse proxy / caching , so that incoming requests / images, / css, / js etc. all are cached by apache.
What do you recommend and what are the pros and cons ?
PS: As for solution 1, do you have any web hosting providers specializing in static content?
Thank.
source
share