I'm using JSF 1.2 and glassfish declarative security with j_security_check..
My xhtml page is in secure_pages folder and i secure all the resources in it by setting security constrant with web resources constraint as "/secure_pages/*"...
My javascripts and CSS are in another (non-secure) folder,which are referenced from the xhtml....
I've made resources cacheable according instruction given by link...
http://blogs.oracle.com/cwebster/entry/caching_static_resources_in_glassfish
Also in one of the discussion of stack overflow
Enable cache of J2EE web application's resources
it written as,it works, but not for security-enabled resources, where Glassfish sets the Expires header on its own.
So my question is "How can i set cache on this static resources?"