diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-07 21:20:27 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-07 21:20:27 +0000 |
commit | 13eb6898aac3dd30690918a36b06998236ec0d9c (patch) | |
tree | 61e4afcfd04d65b615ff4d195b90899341adb619 /src/http/ngx_http_request.h | |
parent | a9456d55aba7d6e068339a6a79dbc937ff30486d (diff) | |
download | nginx-13eb6898aac3dd30690918a36b06998236ec0d9c.tar.gz nginx-13eb6898aac3dd30690918a36b06998236ec0d9c.zip |
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).
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index ec946c5a6..b6ff8983a 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -172,6 +172,8 @@ typedef struct { ngx_table_elt_t *connection; ngx_table_elt_t *if_modified_since; ngx_table_elt_t *if_unmodified_since; + ngx_table_elt_t *if_match; + ngx_table_elt_t *if_none_match; ngx_table_elt_t *user_agent; ngx_table_elt_t *referer; ngx_table_elt_t *content_length; |