Commit 64d7194c authored by omega8cc's avatar omega8cc

Only errors 500 and 503 are supported in fastcgi_cache_use_stale (Nginx).

parent 2fc157de
......@@ -554,7 +554,7 @@ location = /index.php {
fastcgi_pass_header X-Accel-Redirect;
fastcgi_no_cache $cookie_OctopusNoCacheID $http_authorization $http_pragma $nocache;
fastcgi_cache_bypass $cookie_OctopusNoCacheID $http_authorization $http_pragma $nocache;
fastcgi_cache_use_stale error http_500 http_502 http_503 http_504 invalid_header timeout updating;
fastcgi_cache_use_stale error http_500 http_503 invalid_header timeout updating;
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
......
......@@ -540,7 +540,7 @@ location = /index.php {
fastcgi_pass_header X-Accel-Redirect;
fastcgi_no_cache $cookie_OctopusNoCacheID $http_authorization $http_pragma $nocache;
fastcgi_cache_bypass $cookie_OctopusNoCacheID $http_authorization $http_pragma $nocache;
fastcgi_cache_use_stale error http_500 http_502 http_503 http_504 invalid_header timeout updating;
fastcgi_cache_use_stale error http_500 http_503 invalid_header timeout updating;
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