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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/site.conf.erb
===================================================================
--- a/modules/web/templates/site.conf.erb
+++ b/modules/web/templates/site.conf.erb
@@ -1,23 +1,23 @@
-expires 1d;
-
root /var/www/<%= vhost %>;
index index;
default_type text/html;
charset utf-8;
set $index_page "index";
<% if @custom_config %>
<%= custom_config %>
<% end %>
location /
{
+ expires 1d;
+
# Match Accept-Language header against available languages
set $preferredLang en;
set $preferredRegion "";
if ($http_accept_language ~ ^(\w\w)\b)
{
set $preferredLang $1;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld