Make assets cache public in docker container

This commit is contained in:
Haishan 2023-03-11 15:53:19 +08:00
parent cd64985500
commit 0b254f1c87

View file

@ -16,7 +16,7 @@ server {
location ~ assets\/.*\.(?:css|js|woff2?|svg|gif|map)$ {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
add_header Cache-Control "max-age=31536000";
add_header Cache-Control "public, max-age=31536000, immutable";
# access_log off;
}