users@glassfish.java.net

Re: HTTP Header Content changes

From: <glassfish_at_javadesktop.org>
Date: Sun, 08 Aug 2010 18:56:01 PDT

I do not think you can ignore requests to static resources; but you can programmatically set the cache header

response.addHeader("cache-control","max-age=14400") for all requests related to static resources.

Sample code :

if (request.getURI().indexOf(".gif") > -1 || request.getURI().indexOf(".js") > -1) {
 -- do your steps
}

regards
Kamal
[Message sent by forum member 'kamalasekarr']

http://forums.java.net/jive/thread.jspa?messageID=479641