diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 7c77c09b089..d4873585072 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -107,6 +107,13 @@ server { break; } + # some minimal caching here so we don't keep asking + # longer term we should increas probably to 1y + location ~ ^/javascripts/ { + expires 1d; + add_header Cache-Control public,immutable; + } + location ~ ^/assets/(?.+)$ { expires 1y; # asset pipeline enables this