[PATCH] Not Modified: prefer entity tags over date validators
Maxim Dounin
mdounin at mdounin.ru
Wed Nov 19 16:35:27 UTC 2014
Hello!
On Tue, Nov 18, 2014 at 05:15:46PM -0800, Piotr Sikora wrote:
> # HG changeset patch
> # User Piotr Sikora <piotr at cloudflare.com>
> # Date 1416359232 28800
> # Tue Nov 18 17:07:12 2014 -0800
> # Node ID 3efade6bb02f7962a5120e1a1f95a1dc8f0b6a4c
> # Parent 2f7e557eab5b501ba71418febd3de9ef1c0ab4f1
> Not Modified: prefer entity tags over date validators.
>
> RFC7232 says:
>
> A recipient MUST ignore If-Modified-Since if the request contains an
> If-None-Match header field; the condition in If-None-Match is
> considered to be a more accurate replacement for the condition in
> If-Modified-Since, and the two are only combined for the sake of
> interoperating with older intermediaries that might not implement
> If-None-Match.
>
> and:
>
> A recipient MUST ignore If-Unmodified-Since if the request contains
> an If-Match header field; the condition in If-Match is considered to
> be a more accurate replacement for the condition in
> If-Unmodified-Since, and the two are only combined for the sake of
> interoperating with older intermediaries that might not implement
> If-Match.
Current nginx behaviour is to respect both, and I don't see real
reasons to change the behaviour. A while ago I've tried to dig
into HTTPbis VCS and tracker to find out why this part of the
specification was changed from RFC2616, but failed.
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list