PURGE http method and compression.

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Apr 28 12:40:24 CEST 2008


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.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list