This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Caching response headers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Caching response headers" Watch "Caching response headers" New topic
Author

Caching response headers

Gili Tzabari
Greenhorn

Joined: Dec 05, 2004
Posts: 16
Hi,

I'm trying to improve the server-side caching filter found here: http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=3

by making it cache the response headers so when the page is hit from the cache, it'll get the exact same response. The problem is I don't see a portable way to get at the underlying response headers when implementing a ServletResponseWrapper.

How is one supposed to do this? Is there a better preexisting server-side caching filter in existance? This seems like a pretty common-place problem.

Thanks,
Gili
 
GeeCON Prague 2014
 
subject: Caching response headers