Question: Caching HttpServletResponse's content.
I am trying to cache the response using Filter. I have extended HttpResponseWrapper. It has issues with flushing the streams. If you hit the service for the first time, it fetches the data from the db, caches it, but it says transfer closed with xx bytes remaining to read, the next time it will get data correctly from cache.