Skip to content

Instantly share code, notes, and snippets.

@neilstuartcraig
Created September 10, 2015 20:52
Show Gist options
  • Save neilstuartcraig/62cb5236eeabab9a8a4d to your computer and use it in GitHub Desktop.
Save neilstuartcraig/62cb5236eeabab9a8a4d to your computer and use it in GitHub Desktop.
nginx vary header length patch
--- a/src/http/ngx_http_cache.h 2015-06-05 15:10:36.000000000 +0100
+++ b/src/http/ngx_http_cache.h 2015-06-05 15:16:21.000000000 +0100
@@ -25,7 +25,7 @@
#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_VARY_LEN 4096
#define NGX_HTTP_CACHE_VERSION 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment