Mercurial > hg > nginx
diff src/http/ngx_http_request.h @ 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 | 09187f9b0950 |
children | 6f085bfcdb4d |
line wrap: on
line diff
--- a/src/http/ngx_http_request.h Sat Jul 07 21:18:30 2012 +0000 +++ b/src/http/ngx_http_request.h Sat Jul 07 21:20:27 2012 +0000 @@ -172,6 +172,8 @@ 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;