Skip to content

Commit f9c2e1b

Browse files
committed
fix: update Cache-Control header for improved caching and add zstd encoding support
1 parent a914918 commit f9c2e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Caddyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
localhost {
77
header {
8-
Cache-Control "no-cache, no-store, must-revalidate"
8+
Cache-Control "public, max-age=31536000"
99
Cross-Origin-Embedder-Policy "require-corp"
1010
Cross-Origin-Opener-Policy "unsafe-none"
1111
Cross-Origin-Resource-Policy "same-site"
@@ -18,5 +18,5 @@ localhost {
1818
}
1919
try_files {path} /index.html
2020
file_server
21-
encode gzip
21+
encode gzip zstd
2222
}

0 commit comments

Comments
 (0)