Skip to content

Commit 032c766

Browse files
author
Alexandros Ioannides
authored
Update drupal-social.tpl
1 parent 68f6b24 commit 032c766

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.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ server {
6363
fastcgi_param SCRIPT_FILENAME $request_filename;
6464
include /etc/nginx/fastcgi_params;
6565
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
66+
if ($request_uri ~* "/user/|/admin/|index.php") {
67+
set $no_cache 1;
68+
}
69+
if ($http_cookie ~ SESS) {
70+
set $no_cache 1;
71+
}
6672
}
6773

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

0 commit comments

Comments
 (0)