Skip to content

Commit 68f6b24

Browse files
author
Alexandros Ioannides
authored
Update drupal-social.stpl
1 parent eb7bc7e commit 68f6b24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ 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+
if ($request_uri ~* "/user/|/admin/|index.php") {
71+
set $no_cache 1;
72+
}
73+
if ($http_cookie ~ SESS) {
74+
set $no_cache 1;
75+
}
7076
}
7177

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

0 commit comments

Comments
 (0)