Because I might decide that "hmm, this page's content really doesn't
change very often, so why don't I cache its results for 5 minutes"?
 
For example, one page might contain many different 'pagelets', say a
little weather box with the current weather conditions.  If your weather
conditions are only updated every hour, why are you dynamically
generating that little pagelet every request (which can be anywhere from
2 in an hour to several thousand).  You'd cache that pagelet, and set it
to expire every hour.

> -----Original Message-----
> From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 25, 2003 12:06 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet Caching question
> 
> 
> Just one question:
> The output from a servlet/JSP is dynamic, so why would you 
> want to cache the output?
> 
> -----Original Message-----
> From: Atreya Basu [mailto:[EMAIL PROTECTED] 
> Sent: 25 July 2003 18:03
> To: 'Tomcat Users List'
> Subject: RE: Servlet Caching question
> 
> 
> Okay,
> 
> So if I want to do some caching for say: GET requests.  Is 
> there a way to cache output based on URL?  Is this kind of 
> thing simply not supported, and I will have to go to some 
> other application server.
> 
> _____________________________________
> Atreya Basu
> Developer,
> Greenfield Research Inc.
> e-mail: atreya (at) greenfieldresearch (dot) ca
> 
> -----Original Message-----
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: July 25, 2003 1:59 PM
> To: Tomcat Users List
> Subject: RE: Servlet Caching question
> 
> 
> Howdy,
> Basically, tomcat doesn't.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-----Original Message-----
> >From: Atreya Basu [mailto:[EMAIL PROTECTED]
> >Sent: Friday, July 25, 2003 12:42 PM
> >To: [EMAIL PROTECTED]
> >Subject: Servlet Caching question
> >
> >Hello,
> >
> >I wanted to know how Tomcat caches the output of 
> Servlets/JSPs.  Could 
> >someone direct me to where I could find some information on that?
> >
> >_____________________________________
> >Atreya Basu
> >Developer,
> >Greenfield Research Inc.
> >e-mail: atreya (at) greenfieldresearch (dot) ca
> >
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the
> individual(s) to whom it is addressed, and may not be saved, 
> copied, printed, disclosed or used by anyone else.  If you 
> are not the(an) intended recipient, please immediately delete 
> this e-mail from your computer system and notify the sender.  
> Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to