Skip to content

Commit 26c44a9

Browse files
author
Alexandros Ioannides
authored
Update drupal-composer.stpl
1 parent 254d4d9 commit 26c44a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/deb/templates/web/nginx/php-fpm/drupal-composer.stpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ server {
6767
fastcgi_param SCRIPT_FILENAME $request_filename;
6868
include /etc/nginx/fastcgi_params;
6969
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
70+
set $no_cache 0;
71+
if ($request_uri ~* "/user/|/admin/|index.php") {
72+
set $no_cache 1;
73+
}
74+
if ($http_cookie ~ SESS) {
75+
set $no_cache 1;
76+
}
7077
}
7178

7279
location ~ ^/sites/.*/files/styles/ {

0 commit comments

Comments
 (0)