Skip to content

A self-hosted media server and file management system

fix: storage fonts are not cached

aminnausin5097fd437de5
diff --git a/docker/etc/nginx/site-opts.d/http.conf b/docker/etc/nginx/site-opts.d/http.conf
index 9080fb6a..be33d31c 100644
--- a/docker/etc/nginx/site-opts.d/http.conf
+++ b/docker/etc/nginx/site-opts.d/http.conf
@@ -61,8 +61,9 @@ location ~* ^/storage/media/ {
location ~* ^/storage/.*\.(woff|woff2|ttf)$ {
access_log off;
- add_header Cache-Control "private, no-cache";
+ add_header Cache-Control "private, max-age=3600";
try_files $uri =404;
+ # 1h
}
# --- storage (images, mixed) ---