Hi Dan,
glassfish_at_javadesktop.org wrote On 05/16/07 05:05,:
>Hi,
>
>I'm trying to get Servlet caching to work properly in SJAS 9.0u1, here is the (partial) cache configuration in sun-web.xml:
>
><cache-mapping>
> <servlet-name>MediaServlet</servlet-name>
> <key-field name="id" scope="request.parameter"/>
> <key-field name="type" scope="request.parameter"/>
></cache-mapping>
>
>The caching works by ID fine, that is images served by the cache are correct but it seems to ignore the "type" parameter, for example both these requests get the same cache object:
>
>media?id=1&type=thumbnail
>media?id=1&type=medium
>
>If I change the order of the key-fields in the cache-mapping putting "type" first then all the images come out the cache the same (for the same type, i.e. type=medium) regardless of the "id".
>
>It seems the server is ignoring any more than one key-field mappings.
>
>Any ideas? If not I'll log it as a bug.
>
>
Thanks for filing an issue!
I was able to reproduce the problem, and will be committing a fix shortly.
Thanks,
Jan