In an existing struts2 project, images are stored in /public/images, js and css are stored in /js/* and /css/* respectively. Currently they are all loaded correctly by the url http://testdomain.com/js/test.js
. However, a "Cache-Control: private" is always added to it.
After my research online, seems like the only way to serve static content is to put them in /struts
or /static
. Is there anyway I can change that? Struts2 version that is being used is 2.2.1. I also know that perhaps a custom filter can be used but I do not seem to be able to find some more details on it.