PURGE http method and compression.
Wichert Akkerman
wichert at wiggy.net
Mon Apr 28 12:43:00 CEST 2008
Poul-Henning Kamp wrote:
> In message <c1dd32e40804280338y3889e0b2kfb6604f33c9b955f at mail.gmail.com>, "anda
> n andan" writes:
>> Hi all.
>>
>> According to: http://varnish.projects.linpro.no/wiki/FAQ/Compression,
>> for two requests with different "Accept-encoding", the cache stores
>> two objets.
>>
>> But, to purge an URL, how affect this ? we must send two PURGE
>> requests with the two "Accept-encoding" ?
>
> Depends how you do the purge.
>
> If you use the url.purge or hash.purge VCL primitives all matching
> objects will be purged.
>
> If you use the "set obj.ttl = 0s" way of purging, only the single
> object you found in the cache will get purged.
That's interesting. So the default VCL for HTTP PURGE requests will not
purge all variants? How can a backend know which variants there are so it
can purge all of them?
Wichert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the varnish-misc
mailing list