mirror of
https://github.com/mempool/mempool.git
synced 2025-03-17 13:21:55 +01:00
Fix nginx caching for customize.js resource
This commit is contained in:
parent
947f55dda2
commit
1cdb38af0b
@ -27,6 +27,11 @@
|
|||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
expires 5m;
|
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 {
|
location @index-redirect {
|
||||||
rewrite (.*) /$lang/index.html;
|
rewrite (.*) /$lang/index.html;
|
||||||
|
@ -90,6 +90,11 @@ location /resources/config. {
|
|||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
expires 5m;
|
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
|
# cache /main.f40e91d908a068a2.js forever since they never change
|
||||||
location ~* ^/.+\..+\.(js|css)$ {
|
location ~* ^/.+\..+\.(js|css)$ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user