From e353e8d25ae0dea8c5adeab06b581e8c1c8a409b Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 10 Aug 2025 13:32:40 +0000 Subject: [PATCH] Merged r23910 from 5.1-stable to 5.0-stable (#42998). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@23912 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/initializers/10-patches.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 0e01e28a5..77b8af6bb 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -144,6 +144,14 @@ module ActionController end end +module ActionController + module ConditionalGet + def no_store + response.cache_control.replace(no_store: true) + end + end +end + # Adds asset_id parameters to assets like Rails 3 to invalidate caches in browser module ActionView module Helpers