aboutsummaryrefslogtreecommitdiffstats
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
parent103188c62c37cf61f63c3b427857f5818070db58 (diff)
This doesn't work with all the Rails cookies.
-rw-r--r--app/controllers/application_controller.rb6
-rw-r--r--app/controllers/help_controller.rb1
-rw-r--r--app/controllers/public_body_controller.rb2
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.