header problem
"Sander de Boer" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <001701c3bf67$87ed7a10$9600000a@Huiskamer> |
Hello,
I have a problem with last modified headers in oscache.
All the images on my website are database images. Because I won't query the database for the same images, I have made a filter and mapping in my web.xml.
<filter>
<filter-name>Set Image Cache</filter-name>
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Set Image Cache</filter-name>
<url-pattern>/db.images/*</url-pattern>
</filter-mapping>
This works fine. But the last modified header are only showed at the first request. So, browsers couldn't cache my images.
First time:
HTTP/1.x 200 OK
Last-Modified: Fri, 05 Dec 2003 09:54:02 GMT
Date: Fri, 05 Dec 2003 09:54:02 GMT
content-disposition: inline; filename="tv portal.jpeg"
Expires: Sat, 06 Dec 2003 09:54:02 GMT
Content-Type: image/jpeg
Content-Length: 23182
Server: Apache Coyote/1.0
Connection: keep-alive
Second time:
HTTP/1.x 200 OK
Content-Type: image/jpeg
Content-Length: 23182
Date: Fri, 05 Dec 2003 09:54:02 GMT
Server: Apache Coyote/1.0
Connection: keep-alive
What's the problem here?
----
Sander
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=CACHE-70