Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cache aggressively in production.

  • Loading branch information...
commit 5b6d86592b7f86be294537b40d3fbd972df5178e 1 parent 75e479c
@till authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 nginx-app/templates/default/infolit.conf.erb
View
11 nginx-app/templates/default/infolit.conf.erb
@@ -73,6 +73,9 @@ 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;
@@ -80,14 +83,6 @@ server {
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 %>;
Please sign in to comment.
Something went wrong with that request. Please try again.