File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Caching response headers

Gili Tzabari

Joined: Dec 05, 2004
Posts: 16

I'm trying to improve the server-side caching filter found here:

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.

It is sorta covered in the JavaRanch Style Guide.
subject: Caching response headers
It's not a secret anymore!