match new cryptpad v5.2.1 config

This commit is contained in:
meaz 2022-12-30 23:48:49 +01:00
parent 7d851c4fdf
commit a035311cd7
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
1 changed files with 5 additions and 2 deletions

View File

@ -45,9 +45,12 @@
add_header Cross-Origin-Resource-Policy cross-origin;
add_header Cross-Origin-Embedder-Policy require-corp;
# any static assets loaded with "ver=" in their URL will be cached for a year
# This rule overrides the above caching directive and makes things somewhat less efficient.
# We had inverted them as an optimization, but Safari 16 introduced a bug that interpreted
# some important headers incorrectly when loading these files from cache.
# This is why we can't have nice things :(
if ($uri ~ ^(\/|.*\/|.*\.html)$) {
set $cacheControl no-cache;
set $cacheControl no-cache;
}
if ($args ~ ver=) {
set $cacheControl max-age=31536000;