[PATCH-REQUEST] : SPDY handling for 304 response
Valentin V. Bartenev
vbart at nginx.com
Thu Dec 25 15:30:02 UTC 2014
On Thursday 25 December 2014 20:48:41 Shrirang Ballal wrote:
> Hello Valentin,
>
> I understand that the "*complete*" handling of the 204 & 304 response is
> not same, but it is same for below mentioned response headers received by
> downstream client
>
> Quote for handling of "Content-Type", "Content-Length", "Last-Modified"
> header from ngx_http_header_filter_module.c::ngx_http_header_filter()
> /* clear out CL/CT header for header only 204/304 response
> earlier it was done only for 204/304 generated by nginx
> making it common for both paths - when nginx is serving the response
> and when the response is generated from the upstream */
> if (r->headers_out.status == NGX_HTTP_NO_CONTENT
> || r->headers_out.status == NGX_HTTP_NOT_MODIFIED) {
> r->header_only = 1;
> ngx_str_null(&r->headers_out.content_type);
> r->headers_out.last_modified_time = -1;
> r->headers_out.last_modified = NULL;
> r->headers_out.content_length = NULL;
> r->headers_out.content_length_n = -1;
> }
>
> ---
Where have you found this code? It's not part of nginx.
wbr, Valentin V. Bartenev
More information about the nginx-devel
mailing list