Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/web/templates/site.conf.erb

Issue 4690828584812544: Issue 2555 - Don`t send caching headers for dynamic content (Closed)
Patch Set: Created May 19, 2015, 8:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 expires 1d;
2
3 root /var/www/<%= vhost %>; 1 root /var/www/<%= vhost %>;
4 index index; 2 index index;
5 default_type text/html; 3 default_type text/html;
6 charset utf-8; 4 charset utf-8;
7 5
8 set $index_page "index"; 6 set $index_page "index";
9 7
10 <% if @custom_config %> 8 <% if @custom_config %>
11 <%= custom_config %> 9 <%= custom_config %>
12 <% end %> 10 <% end %>
13 11
14 location / 12 location /
15 { 13 {
14 expires 1d;
15
16 # Match Accept-Language header against available languages 16 # Match Accept-Language header against available languages
17 17
18 set $preferredLang en; 18 set $preferredLang en;
19 set $preferredRegion ""; 19 set $preferredRegion "";
20 if ($http_accept_language ~ ^(\w\w)\b) 20 if ($http_accept_language ~ ^(\w\w)\b)
21 { 21 {
22 set $preferredLang $1; 22 set $preferredLang $1;
23 } 23 }
24 if ($http_accept_language ~ ^\w\w-(\w\w)\b) 24 if ($http_accept_language ~ ^\w\w-(\w\w)\b)
25 { 25 {
(...skipping 24 matching lines...) Expand all
50 50
51 <% if @multiplexer_locations %> 51 <% if @multiplexer_locations %>
52 <% @multiplexer_locations.each do |location| %> 52 <% @multiplexer_locations.each do |location| %>
53 location <%= location %> 53 location <%= location %>
54 { 54 {
55 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; 55 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock;
56 include /etc/nginx/fastcgi_params; 56 include /etc/nginx/fastcgi_params;
57 } 57 }
58 <% end %> 58 <% end %>
59 <% end %> 59 <% end %>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld