Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 4744:5b93a9ac60ed
Entity tags: basic support in not modified filter.
This includes handling of ETag headers (if present in a response) with
basic support for If-Match, If-None-Match conditionals in not modified
filter.
Note that the "r->headers_out.last_modified_time == -1" check in the not
modified filter is left as is intentionally. It's to prevent handling
of If-* headers in case of proxy without cache (much like currently
done with If-Modified-Since).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 07 Jul 2012 21:20:27 +0000 |
parents | 986cc869b09d |
children | 4e842583c890 |
comparison
equal
deleted
inserted
replaced
4743:84cc73e01aa8 | 4744:5b93a9ac60ed |
---|---|
89 offsetof(ngx_http_headers_in_t, if_modified_since), | 89 offsetof(ngx_http_headers_in_t, if_modified_since), |
90 ngx_http_process_unique_header_line }, | 90 ngx_http_process_unique_header_line }, |
91 | 91 |
92 { ngx_string("If-Unmodified-Since"), | 92 { ngx_string("If-Unmodified-Since"), |
93 offsetof(ngx_http_headers_in_t, if_unmodified_since), | 93 offsetof(ngx_http_headers_in_t, if_unmodified_since), |
94 ngx_http_process_unique_header_line }, | |
95 | |
96 { ngx_string("If-Match"), | |
97 offsetof(ngx_http_headers_in_t, if_match), | |
98 ngx_http_process_unique_header_line }, | |
99 | |
100 { ngx_string("If-None-Match"), | |
101 offsetof(ngx_http_headers_in_t, if_none_match), | |
94 ngx_http_process_unique_header_line }, | 102 ngx_http_process_unique_header_line }, |
95 | 103 |
96 { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent), | 104 { ngx_string("User-Agent"), offsetof(ngx_http_headers_in_t, user_agent), |
97 ngx_http_process_user_agent }, | 105 ngx_http_process_user_agent }, |
98 | 106 |