From ebc6740e35015241dec40d878581f0b41b631c03 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 20 Mar 2025 13:57:15 +0300 Subject: [PATCH] F: Enable caching for generated assets --- nginx/production.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/production.conf b/nginx/production.conf index 2c74fa62..b3a9b03f 100644 --- a/nginx/production.conf +++ b/nginx/production.conf @@ -75,4 +75,9 @@ server { proxy_pass http://innerreact; proxy_redirect default; } + + location /assets/ { + expires 1y; + add_header Cache-Control "public, max-age=31536000, immutable"; + } } \ No newline at end of file