
| Key: |
CACHE-70
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Duplicate
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Sander de Boer
|
| Votes: |
2
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
OSCache
Created: 05/Dec/03 04:38 AM
Updated: 08/Mar/07 12:29 AM
|
|
| Component/s: |
Filters
|
| Affects Version/s: |
2.0.1
|
| Fix Version/s: |
2.1
|
|
|
Hello,
I have a problem with last modified header in oscache.
All the images in my website are database images. Because I won't query the database for the same images, I 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.
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
So, the browser couldn't cache my images.
What's the problem here?
|
|
Description
|
Hello,
I have a problem with last modified header in oscache.
All the images in my website are database images. Because I won't query the database for the same images, I 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.
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
So, the browser couldn't cache my images.
What's the problem here?
|
Show » |
|