I have a group of static files (mainly the static files, including css and images, that make up the ExtJS JavaScript framework). This group of static files rarely changes and therefore I decided NOT to include them within the items in the web application's war file. (I.e. I didn't follow the approach recommended by this answer.)
Right now I serve all these static files under /extjs
by having the following Context container defined in server.xml
:
<Context docBase="/path/to/extjs-4.1.1" path="/extjs" />
That "works" so far; still if anyone is able to suggest a better approach please do.
However I can't find a way to add expires
HTTP headers to files served by this context.
Any idea how to configure Tomcat7 in this respect?