diff --git a/nginx-mempool.conf b/nginx-mempool.conf index 67cb15939..2532a7082 100644 --- a/nginx-mempool.conf +++ b/nginx-mempool.conf @@ -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; diff --git a/production/nginx/server-common.conf b/production/nginx/server-common.conf index cb6a6153d..2f84cda7f 100644 --- a/production/nginx/server-common.conf +++ b/production/nginx/server-common.conf @@ -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)$ {