Permalink
Browse files

Cache aggressively in production.

  • Loading branch information...
1 parent 75e479c commit 5b6d86592b7f86be294537b40d3fbd972df5178e @till committed Apr 1, 2013
Showing with 3 additions and 8 deletions.
  1. +3 −8 nginx-app/templates/default/infolit.conf.erb
@@ -73,21 +73,16 @@ server {
location /static/ {
<% if node[:scalarium] -%>
+ expires 30d;
+ add_header Pragma public;
+ add_header Cache-Control "public";
root <%= @deploy[:deploy_to] %>/current/app/modules/infolit/www-build;
<% else -%>
root <%= @deploy[:deploy_to] %>/current/app/modules/infolit/www-src;
<% end -%>
access_log <%= @access_log %>;
}
- #location /static-prod/ {
- # expires 30d;
- # add_header Pragma public;
- # add_header Cache-Control "public";
- # root <%= @deploy[:deploy_to] %>/current/app/modules/infolit/www-build;
- # access_log <%= @access_log %>;
- #}
-
location / {
access_log <%= @access_log %>;

0 comments on commit 5b6d865

Please sign in to comment.