aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-09-06 11:37:28 +0100
committerFrancis Irving <francis@mysociety.org>2010-09-06 11:37:28 +0100
commit3695d3613a37a05cfd8b39e41d4b3fcfc63234c6 (patch)
tree4a64fb7040ecce8aa8627c17555a2760236dcd3d /app/controllers/application_controller.rb
parent103188c62c37cf61f63c3b427857f5818070db58 (diff)
This doesn't work with all the Rails cookies.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index c0543ff9f..4d2483234 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -286,12 +286,6 @@ class ApplicationController < ActionController::Base
session[:last_body_id] = public_body.id
end
- # Set cache headers for Squid reverse proxy in front of application
- def set_http_header_cache_expiry(max_age = 10)
- response.headers["Vary"] = 'Cookie, Accept-Encoding'
- expires_in max_age.minutes, :public => true
- end
-
# URL generating functions are needed by all controllers (for redirects),
# views (for links) and mailers (for use in emails), so include them into
# all of all.