Commit 02f54f6b authored by omega8cc's avatar omega8cc

Issue #1528996 by omega8cc - Nginx microcaching should use fastcgi_cache_valid...

Issue #1528996 by omega8cc - Nginx microcaching should use fastcgi_cache_valid with 5s only for 403 error.
parent 6ba72c35
......@@ -545,7 +545,7 @@ location = /index.php {
fastcgi_cache_key "$device$host$request_method$key_uri$cache_uid$http_x_forwarded_proto$cookie_respimg";
fastcgi_cache_valid 200 10s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 301 404 5s;
fastcgi_cache_valid 301 403 404 5s;
fastcgi_cache_valid 500 502 503 504 1s;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_pass_header Set-Cookie;
......
......@@ -531,7 +531,7 @@ location = /index.php {
fastcgi_cache_key "$device$host$request_method$key_uri$cache_uid$http_x_forwarded_proto$cookie_respimg";
fastcgi_cache_valid 200 10s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 301 404 5s;
fastcgi_cache_valid 301 403 404 5s;
fastcgi_cache_valid 500 502 503 504 1s;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_pass_header Set-Cookie;
......
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