forked from hotwired/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Form submissions from frames should clear cache (hotwired#882)
Usually when submitting a form with a method other than `GET`, we clear the snapshot cache. This helps to avoid cases where we might show a stale view of some data that we just mutated. Form submissions from inside frames were not doing this. But they ought to, for the same reason: that form submission may have mutated some data that causes other recent pages to become stale. To avoid this, we can clear the cache after processing a non-`GET` form, or after any failed form submission, to mirror what we do when the form is outside of any frames.
- Loading branch information
1 parent
483ef32
commit 39affe5
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters