Mailing List Archive

Return 304 status code
Hi.

How can I configure Varnish to return 304 status code to the client when the
object was not changed in base of cache headers like if-modified-since (or
others). We want to avoid to send the object if the client has an updated
version.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-misc/attachments/20080118/30c6738e/attachment.htm
Return 304 status code [ In reply to ]
In message <c1dd32e40801180646g69f1f9b9v6610019955f4948c at mail.gmail.com>, "anda
n andan" writes:

>How can I configure Varnish to return 304 status code to the client when the
>object was not changed in base of cache headers like if-modified-since (or
>others). We want to avoid to send the object if the client has an updated
>version.

Varnish already handles if-modified-since correctly.

--
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.