Silent failure on malformed HTML response in Turbo Drive
0 reputation · 09 Jan 2022, 21:08 UTC
Determine whether Turbo Drive automatically discards or updates its internal turbo-cache when a navigation is interrupted because the server returns malformed HTML or a mismatched checksum.
The behavior is not documented; observations suggest stale cache entries may persist, potentially causing incorrect DOM updates on subsequent navigation attempts, especially when comparing Turbo 6 and Turbo 7 implementations.
What conditions trigger the cache to be cleared versus retained? Does the turbo:error event provide sufficient information to manually purge the cache, or is a full page reload required? Are there version-specific differences in how Turbo 6 and Turbo 7 handle this scenario?