From 04927e448f99f67bbfde88dd466f03fb23373b28 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Mon, 25 Jul 2011 15:24:58 +0100 Subject: Add cache headers to various pages (in three categories: short, medium, and long). --- app/controllers/user_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/user_controller.rb') diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 2e3f6c9e0..d3c42c7f1 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -16,6 +16,7 @@ class UserController < ApplicationController # Show page about a user def show + long_cache if MySociety::Format.simplify_url_part(params[:url_name], 'user', 32) != params[:url_name] redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 'user', 32), :status => :moved_permanently return -- cgit v1.2.3