match new cryptpad v5.2.1 config (#37)
@muppeth could you check https://github.com/xwiki-labs/cryptpad/commits/main/docs/example.nginx.conf, the two commits from Dec 7, 2022 , and adjust as needed? I'm not too sure where to implement those changes, not in cryptpad template apparently... Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: #37 Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
parent
2a853122c1
commit
ae7f3a72b4
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue