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