Merge pull request #5071 from mempool/mononaut/fix-customizejs-caching

Fix nginx caching for customize.js resource
This commit is contained in:
wiz authored and GitHub committed 2024-05-14 02:12:46 +09:00
commit 12d212b89f
2 files changed
+10

No files matched your search

+5
View File
@@ -27,6 +27,11 @@
try_files $uri =404;
expires 5m;
}
# only cache /resources/customize.* for 5 minutes since it changes often
location /resources/customize. {
try_files $uri =404;
expires 5m;
}
location @index-redirect {
rewrite (.*) /$lang/index.html;
+5
View File
@@ -90,6 +90,11 @@ location /resources/config. {
try_files $uri =404;
expires 5m;
}
# only cache /resources/customize.* for 5 minutes since it changes often
location /resources/customize. {
try_files $uri =404;
expires 5m;
}
# cache /main.f40e91d908a068a2.js forever since they never change
location ~* ^/.+\..+\.(js|css)$ {