clearing etags when gzipping
mdounin at mdounin.ru
Wed Nov 21 08:24:12 UTC 2012
On Tue, Nov 20, 2012 at 09:45:36PM -0500, Jeff Kaufman wrote:
> In ngx_http_gzip_header_filter there is a call to ngx_http_clear_etag.
> While this spec-compliant it loses the benefits of etags. Two
> alternate approaches would be:
> - Only clear the etag if it's strong.
> - Append ";gzip" to the etag, remove it from
> incoming "if-none-match" requests.
> Would a patch to implement one of these be welcome?
Appending ";gzip" would not work as a result of a gzip might be
different depending on gzip settings. The only aproach which will
work is to change etag to a week one. I'm ok with this, though it
will generally need week etag support in various places.
More information about the nginx-devel