Disable nextcloud dav caching

This commit is contained in:
caskd 2019-08-08 14:26:49 +02:00
parent 9d103da732
commit 6f7e2a1a23
No known key found for this signature in database
GPG Key ID: 4D0C454CCA5DF3B6
1 changed files with 2 additions and 0 deletions

View File

@ -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