We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc7142e commit b360120Copy full SHA for b360120
app/helpers/importmap/importmap_tags_helper.rb
@@ -25,7 +25,7 @@ def javascript_import_module_tag(*module_names)
25
# (defaults to Rails.application.importmap), such that they'll be fetched
26
# in advance by browsers supporting this link type (https://caniuse.com/?search=modulepreload).
27
def javascript_importmap_module_preload_tags(importmap = Rails.application.importmap, entry_point: "application")
28
- javascript_module_preload_tag(*importmap.preloaded_module_paths(resolver: self, entry_point:))
+ javascript_module_preload_tag(*importmap.preloaded_module_paths(resolver: self, entry_point:, cache_key: entry_point))
29
end
30
31
# Link tag(s) for preloading the JavaScript module residing in `*paths`. Will return one link tag per path element.
0 commit comments