summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAAJ2019-03-02 01:00:42 (GMT)
committerAAJ2019-03-02 01:00:42 (GMT)
commit7f65e30646c20e2e82cc4ba935965d6de38a31d3 (patch)
treef4ace55abafc519bddfdbb7118a38819b8f2285b
parent944ba23e7db839bdcee9a4dab88f35f9e909a160 (diff)
Nginx: Fix for not working microcaching
-rw-r--r--http/Provision/Config/Nginx/Inc/vhost_include.tpl.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
index 9e7f947..ee894c4 100644
--- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
@@ -1240,12 +1240,12 @@ location ~ ^/(?<esi>esi/.*)"$ {
fastcgi_cache_valid 301 302 403 404 1s;
fastcgi_cache_valid any 1s;
fastcgi_cache_lock on;
- fastcgi_ignore_headers Cache-Control Expires;
+ fastcgi_ignore_headers Cache-Control Expires Vary;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header X-Accel-Expires;
fastcgi_pass_header X-Accel-Redirect;
- fastcgi_no_cache $cookie_NoCacheID $http_authorization $http_pragma $nocache;
- fastcgi_cache_bypass $cookie_NoCacheID $http_authorization $http_pragma $nocache;
+ fastcgi_no_cache $cookie_NoCacheID $http_authorization $nocache;
+ fastcgi_cache_bypass $cookie_NoCacheID $http_authorization $nocache;
fastcgi_cache_use_stale error http_500 http_503 invalid_header timeout updating;
tcp_nopush off;
keepalive_requests 0;
@@ -1404,12 +1404,12 @@ location = /index.php {
fastcgi_cache_valid 301 302 403 404 1s;
fastcgi_cache_valid any 1s;
fastcgi_cache_lock on;
- fastcgi_ignore_headers Cache-Control Expires;
+ fastcgi_ignore_headers Cache-Control Expires Vary;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header X-Accel-Expires;
fastcgi_pass_header X-Accel-Redirect;
- fastcgi_no_cache $cookie_NoCacheID $http_authorization $http_pragma $nocache;
- fastcgi_cache_bypass $cookie_NoCacheID $http_authorization $http_pragma $nocache;
+ fastcgi_no_cache $cookie_NoCacheID $http_authorization $nocache;
+ fastcgi_cache_bypass $cookie_NoCacheID $http_authorization $nocache;
fastcgi_cache_use_stale error http_500 http_503 invalid_header timeout updating;
}
<?php endif; ?>