summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBOA Dev Team2019-01-09 16:06:38 (GMT)
committerBOA Dev Team2019-01-09 16:06:38 (GMT)
commit2e765c67229b751714e11b6dfede9c2d9dc7e8c0 (patch)
tree620395850fca6e034c0c727670e1bb05fd24b47b
parent37714fff76a9169a6710202deecd6f7f988f99f1 (diff)
Nginx: Fix microcaching to allow D7 use D8 specific config
-rw-r--r--http/Provision/Config/Nginx/Inc/vhost_include.tpl.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
index 8d7ca1f..c6763c2 100644
--- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
@@ -1228,9 +1228,9 @@ location ~ ^/(?<esi>esi/.*)"$ {
fastcgi_cache_methods GET HEAD;
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 5s;
- fastcgi_cache_valid 301 1m;
- fastcgi_cache_valid 302 403 404 1s;
+ fastcgi_cache_valid 200 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_pass_header Set-Cookie;
@@ -1329,7 +1329,7 @@ location @drupal {
set $core_detected "Modern";
}
error_page 418 = @modern;
- if ( $core_detected ~ (?:NotForD7|Modern) ) {
+ if ( $core_detected ~ (?:Regular|Modern) ) {
return 418;
}
###
@@ -1392,9 +1392,9 @@ location = /index.php {
fastcgi_cache_methods GET HEAD; ### Nginx default, but added for clarity
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 200 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_pass_header Set-Cookie;