mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +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;
|
||||
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;
|
||||
|
@ -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)$ {
|
||||
|
Loading…
Reference in New Issue
Block a user