Merge pull request #5071 from mempool/mononaut/fix-customizejs-caching
Fix nginx caching for customize.js resource
This commit is contained in:
commit
12d212b89f
@ -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…
x
Reference in New Issue
Block a user