Module: Importmap::Freshness

Defined in:
app/controllers/importmap/freshness.rb

Instance Method Summary collapse

Instance Method Details

#stale_when_importmap_changesObject



2
3
4
# File 'app/controllers/importmap/freshness.rb', line 2

def stale_when_importmap_changes
  etag { Rails.application.importmap.digest(resolver: helpers) if request.format&.html? }
end