-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Segment Cache] Predictable fallback param encoding (#75166)
When a segment includes a fallback parameter, during prerendering, a random placeholder is used to generate the response. We then use this response to generate a key path for each segment. We need this path to be predictable so the server can create a rewrite for it; it can't include random placeholders. So, this updates the segment generation to replace the placeholder values with a "template" string, e.g. `[paramName]`.
- Loading branch information
Showing
2 changed files
with
61 additions
and
9 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