From 6f7e2a1a2318e25dc6a2f7e6bc069684b6613ab6 Mon Sep 17 00:00:00 2001 From: caskd Date: Thu, 8 Aug 2019 14:26:49 +0200 Subject: [PATCH] Disable nextcloud dav caching --- build/HAProxy/haproxy.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/HAProxy/haproxy.conf b/build/HAProxy/haproxy.conf index c1042e9..d087000 100644 --- a/build/HAProxy/haproxy.conf +++ b/build/HAProxy/haproxy.conf @@ -39,6 +39,7 @@ frontend https acl dav url_beg /.well-known/carddav /.well-known/caldav acl root url / acl discord-redirect url /discord + acl nextcloud-dav url_beg /remote.php acl public_cache res.hdr(content-type) -i -m str text/css -i -m str application/javascript -i -m beg font/ acl private_cache res.hdr(content-type) -i -m beg image/ -i -m beg audio/ -i -m beg video/ -i -m beg text/ -i -m beg application/ @@ -63,6 +64,7 @@ frontend https http-response set-header Cache-Control public\ max-age=31536000 if public_cache ! private_cache or homepage-res http-response set-header Cache-Control private\ max-age=86400\ must-revalidate if private_cache + http-response set-header Cache-Control no-cache if nextcloud_dav nextcloud http-response set-header X-XSS-Protection 1;\ mode=block http-response set-header X-Content-Type-Options nosniff