From 3695d3613a37a05cfd8b39e41d4b3fcfc63234c6 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Mon, 6 Sep 2010 11:37:28 +0100 Subject: This doesn't work with all the Rails cookies. --- app/controllers/application_controller.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/controllers/application_controller.rb') 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. -- cgit v1.2.3