Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Caching response headers

 
Gili Tzabari
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic