myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eisenträger, Tobias <>
Subject Caching from static content
Date Fri, 11 Dec 2009 11:57:42 GMT
Hello List,


Is there a parameter where one can enable the caching for static content, for example images,
css and external javascript?


It looks like Trinidad or myfaces is adding this to the header:


Pragma: No-cache

Cache-Control: no-cache

Expires: Thu, 01 Jan 1970 01:00:00 CET

Etag:  W/"377-1245852154000"


So I wrote a filter, and I added max-age and such to the javax.servlet.ServletResponse, so
now I have:

Server Apache-Coyote/1.1

Pragma No-cache

Cache-Control no-cache, max-age=86400, pre-check=86400, post-check=86400

Expires Thu, 01 Jan 1970 01:00:00 CET, Sat, 12 Dec 2009 12:52:54 GMT

Last-Modified Fri, 11 Dec 2009 11:52:54 GMT

Etag W/"377-1245852154000"

Date Fri, 11 Dec 2009 11:52:54 GMT


So how do I get the old headers removed, or which part of the framework is creating them?





Mit freundlichen Grüßen 


Tobias Eisenträger


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message