[nginx] Cache: increased cache header Vary and ETag lengths to 128.
Maxim Dounin
mdounin at mdounin.ru
Fri Feb 10 15:11:52 UTC 2017
details: http://hg.nginx.org/nginx/rev/609daeb3b48b
branches:
changeset: 6908:609daeb3b48b
user: Maxim Dounin <mdounin at mdounin.ru>
date: Fri Feb 10 17:49:19 2017 +0300
description:
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.
diffstat:
src/http/ngx_http_cache.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (17 lines):
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -24,10 +24,10 @@
#define NGX_HTTP_CACHE_SCARCE 8
#define NGX_HTTP_CACHE_KEY_LEN 16
-#define NGX_HTTP_CACHE_ETAG_LEN 42
-#define NGX_HTTP_CACHE_VARY_LEN 42
+#define NGX_HTTP_CACHE_ETAG_LEN 128
+#define NGX_HTTP_CACHE_VARY_LEN 128
-#define NGX_HTTP_CACHE_VERSION 4
+#define NGX_HTTP_CACHE_VERSION 5
typedef struct {
More information about the nginx-devel
mailing list