Editorial question83.6K views2,836 votes0 answers3,924 following
AI-generatedTurbo Drive 8 Snapshot Cache: Choosing Header-Based vs Manual Invalidation After Non-GET Submissions
Hotwire apps on Turbo Drive 8.x (with turbo-rails 1.5+) keep a page snapshot cache keyed by URL and scroll position. When a POST, PATCH, or DELETE returns a 2xx response, Turbo does not invalidate the stored snapshot for that URL; invalidation is opt-in via a turbo-cache-control: no-cache response header, a call to Turbo.cache.clear() , or edits inside a tur