Mercurial > hg > nginx-quic
annotate contrib/README @ 6428:545b5e4d83b2
Upstream: avoid closing client connection in edge case.
If proxy_cache is enabled, and proxy_no_cache tests true, it was previously
possible for the client connection to be closed after a 304. The fix is to
recheck r->header_only after the final cacheability is determined, and end the
request if no longer cacheable.
Example configuration:
proxy_cache foo;
proxy_cache_bypass 1;
proxy_no_cache 1;
If a client sends If-None-Match, and the upstream server returns 200 with a
matching ETag, no body should be returned to the client. At the start of
ngx_http_upstream_send_response proxy_no_cache is not yet tested, thus cacheable
is still 1 and downstream_error is set.
However, by the time the downstream_error check is done in process_request,
proxy_no_cache has been tested and cacheable is set to 0. The client connection
is then closed, regardless of keepalive.
author | Justin Li <jli.justinli@gmail.com> |
---|---|
date | Tue, 08 Mar 2016 22:31:55 -0500 |
parents | 1bdf906bba99 |
children |
rev | line source |
---|---|
537 | 1 |
667 | 2 geo2nginx.pl by Andrei Nigmatulin |
3 | |
4 The perl script to convert CSV geoip database ( free download | |
5 at http://www.maxmind.com/app/geoip_country ) to format, suitable | |
6 for use by the ngx_http_geo_module. | |
7 | |
537 | 8 |
667 | 9 unicode2nginx by Maxim Dounin |
10 | |
11 The perl script to convert unicode mappings ( available | |
12 at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx | |
13 configuration file format. | |
14 Two generated full maps for windows-1251 and koi8-r. | |
15 | |
5461
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
16 |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
17 vim by Evan Miller |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
18 |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
19 Syntax highlighting of nginx configuration for vim, to be |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
20 placed into ~/.vim/. |
1bdf906bba99
Contrib: added vim to README.
Maxim Dounin <mdounin@mdounin.ru>
parents:
667
diff
changeset
|
21 |