Skip to content

Commit 5cd4aa4

Browse files
author
Alexandros Ioannides
authored
Update drupal.stpl
1 parent 032c766 commit 5cd4aa4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ server {
7777
fastcgi_param SCRIPT_FILENAME $request_filename;
7878
include /etc/nginx/fastcgi_params;
7979
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
80+
if ($request_uri ~* "/user/|/admin/|index.php") {
81+
set $no_cache 1;
82+
}
83+
if ($http_cookie ~ SESS) {
84+
set $no_cache 1;
85+
}
8086
}
8187

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

0 commit comments

Comments
 (0)