Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that page refreshes do not trigger a snapshot cache (hotwired#…
…1196) Fixes a bug introduced in hotwired#1146 `exemptPageFromPreview()` adds a `<meta>` tag to the `<head>` setting `turbo-cache-control` to `no-preview`. However, since the MorphRenderer now inherits from the PageRenderer, it can update meta tags in the head and remove the `turbo-cache-control` tag. This means that the snapshot cache will be used for the next visit, which is not what we want. Specifying `shouldCacheSnapshot: false` in the `visit` options ensures that the snapshot cache is not used for the refresh visit.
- Loading branch information