From 0b254f1c8784ef47e290329ef0339a602af4aa4d Mon Sep 17 00:00:00 2001 From: Haishan Date: Sat, 11 Mar 2023 15:53:19 +0800 Subject: [PATCH] Make assets cache public in docker container --- docker/nginx-default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx-default.conf b/docker/nginx-default.conf index 3896e25..186157d 100644 --- a/docker/nginx-default.conf +++ b/docker/nginx-default.conf @@ -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; }