diff options
-rw-r--r-- | app/controllers/application_controller.rb | 6 | ||||
-rw-r--r-- | app/controllers/help_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
3 files changed, 0 insertions, 9 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. diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index a97a337fa..f35ae3317 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -9,7 +9,6 @@ class HelpController < ApplicationController def about - set_http_header_cache_expiry end def unhappy diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 98251a554..5f51948ee 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -96,8 +96,6 @@ class PublicBodyController < ApplicationController @description = @tag end end - - set_http_header_cache_expiry end # Used so URLs like /local/islington work, for use e.g. writing to a local paper. |