Commit c825124b authored by Tim Zallmann's avatar Tim Zallmann

Updated HTTP 1.1 header and session destroy

parent 450bcb19
...@@ -279,9 +279,7 @@ class ApplicationController < ActionController::Base ...@@ -279,9 +279,7 @@ class ApplicationController < ActionController::Base
end end
def default_cache_headers def default_cache_headers
if current_user headers['Pragma'] = 'no-cache' # HTTP 1.0 compatibility
headers['Pragma'] = 'no-cache' # HTTP 1.0 compatibility
end
end end
def stream_csv_headers(csv_filename) def stream_csv_headers(csv_filename)
......
...@@ -84,7 +84,7 @@ class SessionsController < Devise::SessionsController ...@@ -84,7 +84,7 @@ class SessionsController < Devise::SessionsController
end end
def destroy def destroy
headers['Clear-Site-Data'] = '"cache"' headers['Clear-Site-Data'] = '"*"'
Gitlab::AppLogger.info("User Logout: username=#{current_user.username} ip=#{request.remote_ip}") Gitlab::AppLogger.info("User Logout: username=#{current_user.username} ip=#{request.remote_ip}")
super super
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment