Browse Source

Update drupal-composer.tpl

Alexandros Ioannides 5 years ago
parent
commit
eb7bc7e0e9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      install/deb/templates/web/nginx/php-fpm/drupal-composer.tpl

+ 6 - 0
install/deb/templates/web/nginx/php-fpm/drupal-composer.tpl

@@ -63,6 +63,12 @@ server {
             fastcgi_param SCRIPT_FILENAME $request_filename;
             include /etc/nginx/fastcgi_params;
             include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
+                if ($request_uri ~* "/user/|/admin/|index.php") {
+                    set $no_cache 1;
+                }
+                if ($http_cookie ~ SESS) {
+                    set $no_cache 1;
+                }
         }
 
         location ~ ^/sites/.*/files/styles/ {