ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   MIME types and Servlets that generate binary data
Date:   2003-12-12 15:07:35
From:   jfalkner
Response to: MIME types and Servlets that generate binary data

I was wondering how we could cache pages that use cookies or sessions. Any ideas anyone?


Could you clarify? What about the cookies or session would you want to use for either identifying cached information or for storing in the cache?


You can always cache more than just the content returned by a response. You could have a filter save multiple files in your cache, say one for content, one for session information, etc. However, you will have to have a creative method for figuring out what cache information to use. Perhaps something along the lines of loading user-specific cache information when they log in, or by detecting a cookie you've saved on their machine.


1 to 1 of 1
  1. MIME types and Servlets that generate binary data
    2003-12-15 09:02:11  anonymous2 [View]

    • MIME types and Servlets that generate binary data
      2004-01-07 18:52:12  jfalkner [View]

1 to 1 of 1