[cache] Update cache control header

This commit is contained in:
Fosco Marotto 2021-01-14 17:22:41 -05:00
parent 4d000009f5
commit 0269c7e107
2 changed files with 2 additions and 2 deletions

View File

@ -107,6 +107,6 @@ class Api::BaseController < ApplicationController
end
def set_cache_headers
response.headers['Cache-Control'] = 'private'
response.headers['Cache-Control'] = 'private, max-age=10'
end
end

View File

@ -11,6 +11,6 @@ class Settings::BaseController < ApplicationController
end
def set_cache_headers
response.headers['Cache-Control'] = 'private'
response.headers['Cache-Control'] = 'private, max-age=10'
end
end