[Opensymphony-oscache] HTTP header not being set correctlywhen retrieving dynamic PDF's from cache
NIVEK <[email protected]> Tue, 17 May 2005 09:17:55 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <28166342.1116339505999.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Generating dynamic PDF's via FOP. The first request generates the PDF correctly and OSCache creates a new cache entry. Subsequent requests triggers the browsers File Download box to open. If I click "Open" the document still is not retrieved from cache. Obviously, the HTTP header is not being set correctly for the content type, but how can this be done?
Feedback is appreciated..
10:12:36,663 INFO [CacheFilter] <cache>: filter in scope 3
10:12:36,663 INFO [CacheFilter] <cache>: Using cached entry for ...
<filter>
<filter-name>CacheFilter</filter-name>
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
<init-param>
<param-name>time</param-name>
<param-value>600</param-value>
</init-param>
<init-param>
<param-name>scope</param-name>
<param-value>session</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>/servletName</url-pattern>
</filter-mapping>
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=2291&messageID=6709#6709