Mercurial > hg > nginx-quic
comparison src/http/ngx_http_cache.h @ 6908:609daeb3b48b
Cache: increased cache header Vary and ETag lengths to 128.
This allows to store larger ETag values for proxy_cache_revalidate,
including ones generated as SHA256, and cache responses with longer
Vary (ticket #826).
In particular, this fixes caching of Amazon S3 responses with CORS
enabled, which now use "Vary: Origin, Access-Control-Request-Headers,
Access-Control-Request-Method".
Cache version bumped accordingly.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 10 Feb 2017 17:49:19 +0300 |
parents | 1aeaae6e9446 |
children | ccb5ff87ab3e |
comparison
equal
deleted
inserted
replaced
6907:d16ba0ea3434 | 6908:609daeb3b48b |
---|---|
22 #define NGX_HTTP_CACHE_REVALIDATED 6 | 22 #define NGX_HTTP_CACHE_REVALIDATED 6 |
23 #define NGX_HTTP_CACHE_HIT 7 | 23 #define NGX_HTTP_CACHE_HIT 7 |
24 #define NGX_HTTP_CACHE_SCARCE 8 | 24 #define NGX_HTTP_CACHE_SCARCE 8 |
25 | 25 |
26 #define NGX_HTTP_CACHE_KEY_LEN 16 | 26 #define NGX_HTTP_CACHE_KEY_LEN 16 |
27 #define NGX_HTTP_CACHE_ETAG_LEN 42 | 27 #define NGX_HTTP_CACHE_ETAG_LEN 128 |
28 #define NGX_HTTP_CACHE_VARY_LEN 42 | 28 #define NGX_HTTP_CACHE_VARY_LEN 128 |
29 | 29 |
30 #define NGX_HTTP_CACHE_VERSION 4 | 30 #define NGX_HTTP_CACHE_VERSION 5 |
31 | 31 |
32 | 32 |
33 typedef struct { | 33 typedef struct { |
34 ngx_uint_t status; | 34 ngx_uint_t status; |
35 time_t valid; | 35 time_t valid; |