cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@bluxte.net>
Subject Re: XMLSerializer.java why not implements CacheableProcessingComponent
Date Mon, 03 Jan 2011 17:31:57 GMT
Le 30/12/10 13:08, Thorsten Scherler a écrit :
> Hi all,
>
> I wonder is there a reason why nobody did
>
> -public class XMLSerializer extends EncodingSerializer {
> +public class XMLSerializer extends EncodingSerializer implements
> CacheableProcessingComponent {
>
> I am doing some caching enhancement for a client and using the profiler
> I found out that my 100% cacheable page did not return 304. So I
> stumbled upon the above.
>
> When I make the XMLSerializer implementing CacheableProcessingComponent
> the whole pipeline is returning 304 which I am looking for that the
> status is for the response.
>
> Without the above patch I always get a 200 since the serializer is not
> cacheable hence the whole pipe.
>
> Is there an obvious reason that I am not seeing why the serializer
> should not be cacheable?

This is obviously an error, and the "other" serializer in 
org.apache.cocoon.serialization.XMLSerializer is cacheable.

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


Mime
View raw message