cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: [proposal] fixing the encoding problems
Date Tue, 18 Mar 2003 02:51:11 GMT
Pier Fumagalli wrote:
<snip/>

>But there is a problem... Proxies and caches...
>  
>

AFAIK (took a look at spec too ;):

>If, for example, in my corporation there are two guys, one using Windows in
>jp and one using Linux in en_US, if the first guy requests
>"http://www.vnunet.com/", I'll deliver the page the first time in jp,
>encoded in shift_jis (let's not track content-type for a sec).
>

Vary: Content-Encoding


>Now, when the second guy requests the same page, I'd have to send it in
>en_US maybe encoded in iso-8859-1...
>

Vary: Content-Encoding


>But my corporation proxy (or the cocoon cache), will cache the first version
>it hits, so, to both of them, I'll end up serving the same Japanese
>shift_jis content...
>

Now, proxy will have 2 objects as it knows that responses were different.


>Not good... Needs more thinking indeed...
>

:)

PS Worse case schenario is
Vary: *
which effectively disables any caching...


Vadim

>    Pier
>



Mime
View raw message