Altering response based on content-type
phk at phk.freebsd.dk
Mon Sep 25 20:41:19 CEST 2006
In message <20060925085102.GL13253 at crusaders.no>, Trond Michelsen writes:
>So that would give me another option, which probably is simpler. Set
>obj.ttl to 0s if its size is 142 bytes. Is that possible?
If your backend includes a Content-Length: header you can test on,
If it uses chunked encoding we won't know the size until after the
vcl_fetch() has been called.
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