A platform for community discussion. Free, open, simple.
PERF: add some minimal caching to javascripts folder
Sam6e7006529107
diff --git a/config/nginx.sample.conf b/config/nginx.sample.confindex 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/(?<asset_path>.+)$ {expires 1y;# asset pipeline enables this