2020-01-30 16:08:47 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module NoCacheHeaders
|
|
|
|
DEFAULT_GITLAB_NO_CACHE_HEADERS = {
|
|
|
|
'Cache-Control' => "#{ActionDispatch::Http::Cache::Response::DEFAULT_CACHE_CONTROL}, no-store, no-cache",
|
2022-08-31 05:13:12 -04:00
|
|
|
'Pragma' => 'no-cache', # HTTP 1.0 compatibility
|
|
|
|
'Expires' => 'Fri, 01 Jan 1990 00:00:00 GMT'
|
2020-01-30 16:08:47 -05:00
|
|
|
}.freeze
|
|
|
|
|
|
|
|
def no_cache_headers
|
|
|
|
raise "#no_cache_headers is not implemented for this object"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|