diff options
author | Francis Irving <francis@mysociety.org> | 2010-09-06 09:18:54 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-09-06 09:18:54 +0100 |
commit | 539e3d0f3cdf2aee836ea7b784e91d4ad1a9fbf1 (patch) | |
tree | 009b11ad82d5b0d28cc508271980696ee0d681ae /app/controllers/application_controller.rb | |
parent | 3c7ba5313c30581cbe82056aa3462e4b39729523 (diff) |
Rename function so doesn't say "squid" in it
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 41108ad19..0f287f2e4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -272,7 +272,7 @@ class ApplicationController < ActionController::Base end # Set cache headers for Squid reverse proxy in front of application - def cache_in_squid(max_age = 10) + def set_http_header_cache_expiry(max_age = 10) response.headers["Vary"] = 'Cookie, Accept-Encoding' expires_in max_age.minutes, :public => true end |