mirror of
https://github.com/nginx/nginx.git
synced 2026-06-09 08:57:35 -04:00
remove "Content-Encoding: gzip" in 304 response
sent by ngx_http_gzip_static_module
This commit is contained in:
parent
653edd491b
commit
20c9f8be85
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ ngx_http_not_modified_header_filter(ngx_http_request_t *r)
|
|||
ngx_http_clear_content_length(r);
|
||||
ngx_http_clear_accept_ranges(r);
|
||||
|
||||
if (r->headers_out.content_encoding) {
|
||||
r->headers_out.content_encoding->hash = 0;
|
||||
r->headers_out.content_encoding = NULL;
|
||||
}
|
||||
|
||||
return ngx_http_next_header_filter(r);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue