Use stale_when_importmap_changes

This commit is contained in:
David Heinemeier Hansson
2024-12-20 17:42:14 -08:00
parent a531e627c6
commit 84a07343a4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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
@@ -1,5 +1,6 @@
class ApplicationController < ActionController::Base
include Authentication
stale_when_importmap_changes
allow_browser versions: :modern
end