aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-25 15:24:58 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-25 15:24:58 +0100
commit04927e448f99f67bbfde88dd466f03fb23373b28 (patch)
treefabc9d81ab8d27452bd49c6f988afbd7a3d3644a /app/controllers/user_controller.rb
parent1e33a67f9e3e282ce83c18127624f74bb5840549 (diff)
Add cache headers to various pages (in three categories: short, medium, and long).
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb1
1 files changed, 1 insertions, 0 deletions
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