Commit a1047124 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 1s only for upstream errors.
parent 0e3d10f1
......@@ -546,6 +546,7 @@ location = /index.php {
fastcgi_cache_valid 200 10s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 301 404 5s;
fastcgi_cache_valid 500 502 503 504 1s;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header X-Accel-Expires;
......@@ -554,7 +555,7 @@ location = /index.php {
fastcgi_no_cache $nocache;
fastcgi_cache_bypass $cookie_OctopusNoCacheID;
fastcgi_cache_bypass $nocache;
fastcgi_cache_use_stale error timeout updating;
fastcgi_cache_use_stale error updating timeout invalid_header;
try_files $uri =404; ### check for existence of php file first
fastcgi_pass 127.0.0.1:9000;
track_uploads uploads 60s; ### required for upload progress
......
......@@ -532,6 +532,7 @@ location = /index.php {
fastcgi_cache_valid 200 10s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 301 404 5s;
fastcgi_cache_valid 500 502 503 504 1s;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header X-Accel-Expires;
......@@ -540,7 +541,7 @@ location = /index.php {
fastcgi_no_cache $nocache;
fastcgi_cache_bypass $cookie_OctopusNoCacheID;
fastcgi_cache_bypass $nocache;
fastcgi_cache_use_stale error timeout updating;
fastcgi_cache_use_stale error updating timeout invalid_header;
try_files $uri =404; ### check for existence of php file first
fastcgi_pass 127.0.0.1:9000;
expires epoch;
......
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