F: Enable caching for generated assets

This commit is contained in:
Ivan 2025-03-20 13:57:34 +03:00
parent e144d20f2d
commit 1e41ef74ee
2 changed files with 10 additions and 0 deletions

View File

@ -75,4 +75,10 @@ server {
proxy_pass http://innerreact; proxy_pass http://innerreact;
proxy_redirect default; proxy_redirect default;
} }
location /assets/ {
proxy_pass http://innerreact/assets/;
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable";
}
} }

View File

@ -12,6 +12,10 @@
<meta name="google-site-verification" content="bodB0xvBD_xM-VHg7EgfTf87jEMBF1DriZKdrZjwW1k" /> <meta name="google-site-verification" content="bodB0xvBD_xM-VHg7EgfTf87jEMBF1DriZKdrZjwW1k" />
<meta name="yandex-verification" content="2b1f1f721cd6b66a" /> <meta name="yandex-verification" content="2b1f1f721cd6b66a" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link <link