mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-24 18:05:24 +00:00
16 lines
433 B
Ruby
16 lines
433 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module ActionController
|
||
|
module ConditionalGetExtensions
|
||
|
def expires_in(*)
|
||
|
# This backports a fix from Rails 7 so that a more private Cache-Control
|
||
|
# can be overriden by calling expires_in on a specific controller action
|
||
|
response.cache_control.delete(:no_store)
|
||
|
|
||
|
super
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
ActionController::ConditionalGet.prepend(ActionController::ConditionalGetExtensions)
|