Hello, I'd like to know when the default expiration time set on images. Here an example:
Http request was generated on Wednesday, September 07, 2005 10:01:41 AM I've gor the following expire times (I'm using firefox and got the information from the page info): for *ico is Friday, September 09, 2005 11:20:20 PM for *.gif is Wednesday, September 07, 2005 10:01:41 AM I have tomcat 5.0.24 on Redhat 9. Note, I have a filter with following code in doFilter: HttpServletResponse resp = (HttpServletResponse)response; resp.setHeader("Cache-Control", "max-age=" + 86400); in web.xml I have: <filter> <filter-name>cFilter</filter-name> <filter-class>MyFilter</filter-class> </filter> <filter-mapping> <filter-name>cFilter</filter-name> <url-pattern>/*gif</url-pattern> </filter-mapping> Also my HTML output I have the following code to prevent caching: <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, post-check=0, pre-check=0"> <meta http-equiv="Expires" content="Tue, 01-Sep-05 12:00:00 GMT"> The question is why *ico files have expiration time in the future, but all gif files have the expiration time of http request. *gif files somewho are not cached and I see it in tomcat access log files that they was requested and return status for them is 304 (not changed) Thanks, Mark. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]