From 7d4d08c59f4150ea94e75c32ee8512dc66e0c936 Mon Sep 17 00:00:00 2001 From: Raphael <raphael@joindiaspora.com> Date: Thu, 20 Jan 2011 16:45:01 -0800 Subject: [PATCH] Add cache control public to public/assets --- chef/cookbooks/common/templates/default/nginx.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index c038d82c91..e5dee7afa8 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -88,6 +88,10 @@ http { ssl_certificate <%= @cert_location %>; ssl_certificate_key <%= @key_location %>; + location /assets { + expires 1d; + add_header Cache-Control public + } location / { proxy_set_header X-Real-IP $remote_addr; -- GitLab