Welcome! Log In Create A New Profile

Advanced

Add Support for Weak ETags

Aaron Peschel
October 25, 2013 05:08PM
This is a response to rev 4746 which removed ETags. 4746 removes the ETag field
from the header in all instances where content is modified by the web server
prior to being sent to the requesting client. This is far more stringent than
required by the HTTP spec.

The HTTP spec requires that strict ETags be dependent on the variant that is
returned by the server. While removing all ETags from these variants
*technically* meets the spec, it is a bit extreme.

This commit modifies the ngx_http_clear_etag macro to check if the ETag is
marked as a weak ETag. IFF that case, the ETag is retained, and not dropped.

Longer term, a better solution would be to completely remove
ngx_http_clear_strict_etag and replace it with functions to generate a strict
ETag for a variant prior to sending a response to the client, provided that
there is not a weak ETag field already included.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Add Support for Weak ETags Attachments

Aaron Peschel 1045 October 25, 2013 05:08PM

Re: Add Support for Weak ETags

Piotr Sikora 439 October 25, 2013 05:56PM

Re: Add Support for Weak ETags

Aaron Peschel 422 October 29, 2013 06:06PM

Re: Add Support for Weak ETags

Aaron Peschel 646 November 04, 2013 08:16PM

Re: Add Support for Weak ETags

Maxim Dounin 417 November 12, 2013 11:48AM

Re: Add Support for Weak ETags

Piotr Sikora 388 November 12, 2013 03:26PM

Re: Add Support for Weak ETags

Maxim Dounin 420 November 12, 2013 03:56PM

Re: Add Support for Weak ETags

Piotr Sikora 544 November 12, 2013 05:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 80
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready