summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-11-20 22:32:12 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-11-20 22:32:12 +0200
commit4bf4efe712489090fca4ce14be9cbe7637f4d511 (patch)
treeea094b51aa78c838b8c4cdc863ceeee208a93a89 /app/controllers/application_controller.rb
parent6721ef01f40221171671bea02f7c3477ad209c79 (diff)
downloadgitlab-ce-4bf4efe712489090fca4ce14be9cbe7637f4d511.tar.gz
decorators & tree model
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 95d94035448..b37deafdb4e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -84,4 +84,10 @@ class ApplicationController < ActionController::Base
nil
end
end
+
+ def no_cache_headers
+ response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
+ response.headers["Pragma"] = "no-cache"
+ response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
+ end
end