Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 5877:60fde1bc7236
Cache: disable caching of responses with Vary (ticket #118).
The "proxy_ignore_header" directive now undersands the "Vary" parameter
to ignore the header as needed.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 27 Oct 2014 21:13:39 +0300 |
parents | 2aff40b3dea2 |
children | 973ee2276300 |
comparison
equal
deleted
inserted
replaced
5876:973fded4f461 | 5877:60fde1bc7236 |
---|---|
48 #define NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL 0x00000010 | 48 #define NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL 0x00000010 |
49 #define NGX_HTTP_UPSTREAM_IGN_SET_COOKIE 0x00000020 | 49 #define NGX_HTTP_UPSTREAM_IGN_SET_COOKIE 0x00000020 |
50 #define NGX_HTTP_UPSTREAM_IGN_XA_LIMIT_RATE 0x00000040 | 50 #define NGX_HTTP_UPSTREAM_IGN_XA_LIMIT_RATE 0x00000040 |
51 #define NGX_HTTP_UPSTREAM_IGN_XA_BUFFERING 0x00000080 | 51 #define NGX_HTTP_UPSTREAM_IGN_XA_BUFFERING 0x00000080 |
52 #define NGX_HTTP_UPSTREAM_IGN_XA_CHARSET 0x00000100 | 52 #define NGX_HTTP_UPSTREAM_IGN_XA_CHARSET 0x00000100 |
53 #define NGX_HTTP_UPSTREAM_IGN_VARY 0x00000200 | |
53 | 54 |
54 | 55 |
55 typedef struct { | 56 typedef struct { |
56 ngx_msec_t bl_time; | 57 ngx_msec_t bl_time; |
57 ngx_uint_t bl_state; | 58 ngx_uint_t bl_state; |
242 ngx_table_elt_t *last_modified; | 243 ngx_table_elt_t *last_modified; |
243 ngx_table_elt_t *location; | 244 ngx_table_elt_t *location; |
244 ngx_table_elt_t *accept_ranges; | 245 ngx_table_elt_t *accept_ranges; |
245 ngx_table_elt_t *www_authenticate; | 246 ngx_table_elt_t *www_authenticate; |
246 ngx_table_elt_t *transfer_encoding; | 247 ngx_table_elt_t *transfer_encoding; |
248 ngx_table_elt_t *vary; | |
247 | 249 |
248 #if (NGX_HTTP_GZIP) | 250 #if (NGX_HTTP_GZIP) |
249 ngx_table_elt_t *content_encoding; | 251 ngx_table_elt_t *content_encoding; |
250 #endif | 252 #endif |
251 | 253 |