diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-20 22:32:12 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-20 22:32:12 +0200 |
commit | 4bf4efe712489090fca4ce14be9cbe7637f4d511 (patch) | |
tree | ea094b51aa78c838b8c4cdc863ceeee208a93a89 /app/controllers/application_controller.rb | |
parent | 6721ef01f40221171671bea02f7c3477ad209c79 (diff) | |
download | gitlab-ce-4bf4efe712489090fca4ce14be9cbe7637f4d511.tar.gz |
decorators & tree model
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 6 |
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 |