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
end
def default_cache_headers
if current_user
headers['Pragma'] = 'no-cache' # HTTP 1.0 compatibility
end
headers['Pragma'] = 'no-cache' # HTTP 1.0 compatibility
end
def stream_csv_headers(csv_filename)
......
......@@ -84,7 +84,7 @@ class SessionsController < Devise::SessionsController
end
def destroy
headers['Clear-Site-Data'] = '"cache"'
headers['Clear-Site-Data'] = '"*"'
Gitlab::AppLogger.info("User Logout: username=#{current_user.username} ip=#{request.remote_ip}")
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