Disable nextcloud dav caching
This commit is contained in:
parent
9d103da732
commit
6f7e2a1a23
|
@ -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
|
||||
|
|
Reference in New Issue