aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-26 11:01:13 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-26 11:01:13 +0100
commit3ffb72b38cb0d805ad74997af6c569a3f02952e7 (patch)
tree406183f4fca1b6706ba0de4f1d08e409f4b046ea /app/controllers/application_controller.rb
parentfafb17b4c41d50dd6349c9b2983ccf050bec1e00 (diff)
Use new rails API for caching header
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 9ee1c250b..959caf7ef 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -271,7 +271,7 @@ class ApplicationController < ActionController::Base
# Set cache headers for Squid reverse proxy in front of application
def cache_in_squid(max_age = 10)
response.headers["Vary"] = 'Cookie, Accept-Encoding'
- expires_in max_age.minutes, :private => false
+ expires_in max_age.minutes, :public => true
end
# URL generating functions are needed by all controllers (for redirects),