RE: caching static objects

2004-03-23 Thread Ronald Wildenberg
 We are running Tomcat-standalone and are having some caching 
 issues. It
 appears to be a browser issue, but there's got to be some workaround.
 We've got the headers set to pragma nocache, but it continues to cache
 objects, such as charts that are created dynamically. I suppose this
 wouldn't be an issue if the code worked with Apache. Also, creating
 unique identifiers for each object has been shot down. Does 
 anyone know
 of a way to get server.xml to set each object not to cache? Thanks.
 


The 'Pragma' header you use is from HTTP/1.0. Most caches, including
browser cache, by now use HTTP/1.1, where cache control is achieved
differently. You should use 'Cache-Control' headers (although it never
hurts to also use 'Pragma' headers, in case you encounter an older
HTTP/1.0 cache).

For more information you can look at the HTTP/1.1 RFC at:

   ftp://ftp.isi.edu/in-notes/rfc2616.txt

and search for the text 'Cache-Control'.


Regards, Ronald.

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



RE: caching static objects

2004-03-23 Thread Shapira, Yoav

Howdy,

We are running Tomcat-standalone and are having some caching issues. It
appears to be a browser issue, but there's got to be some workaround.
We've got the headers set to pragma nocache, but it continues to cache
objects, such as charts that are created dynamically. I suppose this
wouldn't be an issue if the code worked with Apache. Also, creating
unique identifiers for each object has been shot down. Does anyone know
of a way to get server.xml to set each object not to cache? Thanks.

There's no server.xml way to do this, but it's a trivial filter to
write.  Just add the pragma-nocache and the cache-control headers to
every outgoing response.

Yoav Shapira



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]



RE: caching static objects

2004-03-22 Thread Mike Curwen
if you're using the jfreechart package for dynamic chart creation, then
there's a setting in that package that you can adjust for whether or not
the chart should be cached or not (and when it expires).


 -Original Message-
 From: Kimberly McKinnis [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 4:42 PM
 To: [EMAIL PROTECTED]
 Subject: caching static objects
 
 
 We are running Tomcat-standalone and are having some caching 
 issues. It appears to be a browser issue, but there's got to 
 be some workaround. We've got the headers set to pragma 
 nocache, but it continues to cache objects, such as charts 
 that are created dynamically. I suppose this wouldn't be an 
 issue if the code worked with Apache. Also, creating unique 
 identifiers for each object has been shot down. Does anyone 
 know of a way to get server.xml to set each object not to 
 cache? Thanks.
 
 


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



RE: caching static objects

2004-03-22 Thread Kimberly McKinnis
Mmm... good thought. Am using Chart FX though. I shall look in there.
Thanks!

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 3:25 PM
To: 'Tomcat Users List'
Subject: RE: caching static objects

if you're using the jfreechart package for dynamic chart creation, then
there's a setting in that package that you can adjust for whether or not
the chart should be cached or not (and when it expires).


 -Original Message-
 From: Kimberly McKinnis [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 4:42 PM
 To: [EMAIL PROTECTED]
 Subject: caching static objects
 
 
 We are running Tomcat-standalone and are having some caching 
 issues. It appears to be a browser issue, but there's got to 
 be some workaround. We've got the headers set to pragma 
 nocache, but it continues to cache objects, such as charts 
 that are created dynamically. I suppose this wouldn't be an 
 issue if the code worked with Apache. Also, creating unique 
 identifiers for each object has been shot down. Does anyone 
 know of a way to get server.xml to set each object not to 
 cache? Thanks.
 
 


-
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]