From 3ffb72b38cb0d805ad74997af6c569a3f02952e7 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Mon, 26 Jul 2010 11:01:13 +0100 Subject: Use new rails API for caching header --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') 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), -- cgit v1.2.3