RE: How to specify cache time out period for images !!!!
Make a filter and map it to the image filetypes... -Original Message- From: Puthezhath, Rajeev (TWII Boston) [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 8:01 PM To: Orion-Interest Subject: How to specify cache time out period for images Hi, We have a J2EE application developed with JSP,EJB and SQL server 2000 with Orion Server.We want to cache all our jsp page for a particular time on a caching server.With HTTP Headers this is perfectly working but the images on the page it never Time out. I would like to know if there is a way to set cache time out for images in Orion or JSP Can any body help. Regards Rajeev
Re: How to specify cache time out period for images !!!!
This is a very general HTTP/browser question that you might get a quicker answer to from a more target newsgroup, such as comp.infosystems.www.browsers, or one related to HTTP. However, if someone on this list has the answer, I know I sure would like to hear it. I wonder if have a servlet field the requests for images, so that it can set the proper header lines, would be enough? I don't know if browsers honor those headers when they are downloading images. tim. Hi, We have a J2EE application developed with JSP,EJB and SQL server 2000 with Orion Server.We want to cache all our jsp page for a particular time on a caching server.With HTTP Headers this is perfectly working but the images on the page it never Time out. I would like to know if there is a way to set cache time out for images in Orion or JSP Can any body help. Regards Rajeev
Re: How to specify cache time out period for images !!!!
I could not manage to prevent caching of dynamically generated images playnig with response headers. A simple hack is to add some dummy request parameter to the image URL, assuming it won't break your servlet : img src= "/YourServletImageGenerator?DUMMY=%=JspBean.getCacheControlValue()%" The image URL gets cached and is used from cache among responses as long as cache control value stays the same. You can provide implicit timeout changing that value after time required. ~boris Tim Endres wrote: This is a very general HTTP/browser question that you might get a quicker answer to from a more target newsgroup, such as comp.infosystems.www.browsers, or one related to HTTP. However, if someone on this list has the answer, I know I sure would like to hear it. I wonder if have a servlet field the requests for images, so that it can set the proper header lines, would be enough? I don't know if browsers honor those headers when they are downloading images. tim. Hi, We have a J2EE application developed with JSP,EJB and SQL server 2000 with Orion Server.We want to cache all our jsp page for a particular time on a caching server.With HTTP Headers this is perfectly working but the images on the page it never Time out. I would like to know if there is a way to set cache time out for images in Orion or JSP Can any body help. Regards Rajeev