Commit 52eb2ff1 authored by memtkmcc's avatar memtkmcc

Issue #3149961: Nginx - Sync fastcgi_cache in subdirs with main config

parent 44c5bb3b
......@@ -1151,16 +1151,15 @@ location ^~ /<?php print $subdir; ?> {
fastcgi_cache_min_uses 1;
fastcgi_cache_key "$scheme$is_bot$device$host$request_method$key_uri$cache_uid$http_x_forwarded_proto$sent_http_x_local_proto$cookie_respimg";
fastcgi_cache_valid 200 10s;
fastcgi_cache_valid 301 1m;
fastcgi_cache_valid 302 403 404 1s;
fastcgi_cache_valid any 3s;
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; ?>
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment