Skip to content

Commit 8d0814f

Browse files
author
Alexandros Ioannides
authored
Update drupal.tpl
1 parent 5cd4aa4 commit 8d0814f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/deb/templates/web/nginx/php-fpm/drupal.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ server {
7373
fastcgi_param SCRIPT_FILENAME $request_filename;
7474
include /etc/nginx/fastcgi_params;
7575
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
76+
if ($request_uri ~* "/user/|/admin/|index.php") {
77+
set $no_cache 1;
78+
}
79+
if ($http_cookie ~ SESS) {
80+
set $no_cache 1;
81+
}
7682
}
7783

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

0 commit comments

Comments
 (0)