From 84a07343a4c8766839c806a2f4671fc3ce57a6fd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Dec 2024 17:42:14 -0800 Subject: [PATCH] Use stale_when_importmap_changes --- Gemfile.lock | 4 ++-- app/controllers/application_controller.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 85f38298b..ae8d685a2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -160,7 +160,7 @@ GEM zeitwerk i18n (1.14.6) concurrent-ruby (~> 1.0) - importmap-rails (2.0.3) + importmap-rails (2.1.0) actionpack (>= 6.0.0) activesupport (>= 6.0.0) railties (>= 6.0.0) @@ -388,4 +388,4 @@ RUBY VERSION ruby 3.3.5p100 BUNDLED WITH - 2.5.23 + 2.5.21 diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6a5708320..c54063eef 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,6 @@ class ApplicationController < ActionController::Base include Authentication + stale_when_importmap_changes allow_browser versions: :modern end