Repository navigation
Cache: port SWR tag revalidation from AWS #1122 / #1142 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
fa74e70
refactor: remove createServerBundle.ts and integrate its functionalit…
conico974 33a6eff
feat: implement default overrides for bundle configurations and add t…
conico974 fe002e1
format
conico974 9ee9515
fix ts issue
conico974 6fad0c6
feat: add default overrides for AWS adapter and integrate Cloudflare …
conico974 84397ab
Revert "feat: add default overrides for AWS adapter and integrate Clo…
conico974 f22d37f
feat: enhance AWS adapter with default overrides and improve middlewa…
conico974 a3165f0
refactor(core): return ValidateConfigResult from validateConfig inste…
conico974 6296e94
refactor(core): extract buildOpenNextOutput, export OpenNextOutput type
conico974 4e82821
refactor(core): branch on ValidateConfigResult in compileOpenNextConfig
conico974 0af2e73
feat(core): overridable validateConfig and generic generateOutput on …
conico974 bab47f1
fix(core): use require.resolve for full-path overrides in resolve plugin
conico974 51b5e3b
format
conico974 a437de1
feat(core): enforce mandatory externals in serverBundle and update re…
conico974 cd8f83e
refactor(core): enhance resolve plugin to support dynamic override re…
conico974 c200d7a
feat(core): run the cache in a dedicated handler function
conico974 8b63860
feat(cloudflare): add the OpenNextCache entrypoint
conico974 dc444fc
refactor(core)!: route all caching through the cache override
conico974 0799572
feat: port stale-while-revalidate tag revalidation from AWS
conico974 a5bdec3
Merge remote-tracking branch 'origin/main' into vicb/review-pr-46
vicb f4c250a
fix(core): restore composable cache stale handling
vicb e1b99d6
fix(core): restore stale tag cache reads
vicb 621c25b
fix(core): propagate tag revalidation durations
vicb 9c73819
fix(aws): preserve DynamoDB SWR entries before expiry
vicb f4c03c2
fix(cache): preserve next-mode SWR entries before expiry
vicb 7570c31
fix(core): preserve filesystem SWR entries before expiry
vicb 08b80e1
perf(aws): cache missing next-mode tags per request
vicb 3becbc0
fix(cache): support SWR tags without expiry
vicb 82d483d
fix(core): validate tag revalidation durations
vicb 07d8931
style: format cache review fixes
vicb 1d60cf8
fix(aws): preserve lightweight SWR entries without expiry
vicb cfae0bf
fix(cache): ignore superseded SWR expirations
vicb 89a0704
fix(cache): preserve timestamps when serving stale entries
vicb 966bbec
fix(aws): classify stale tag records explicitly
vicb fadd91f
fix(cloudflare): preserve string tag filter callbacks
vicb 43ede0e
fix(cloudflare): forward filtered tag staleness checks
vicb 938b9f7
fix(core): scope standalone cache reads to a request
vicb 65bde83
fix(aws): retry unprocessed tag cache reads
vicb f698072
fix(core): inherit owning-path staleness for fetch entries
vicb 6f7de8d
fix(cloudflare): reject unsupported tag SWR
vicb cd54cf3
style: format tag staleness regression test
vicb 979123e
fix(cache): surface unsupported SWR through Next
vicb 3f25aac
fix(cache): keep zero-expiry invalidations hard
vicb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| "@opennextjs/core": minor | ||
| "@opennextjs/aws": minor | ||
| --- | ||
|
|
||
| Port stale-while-revalidate tag revalidation from AWS | ||
|
|
||
| Ports [#1122](https://github.com/opennextjs/opennextjs-aws/pull/1122) and | ||
| [#1142](https://github.com/opennextjs/opennextjs-aws/pull/1142). | ||
|
|
||
| Tags can now carry `stale` and `expire` durations, so an entry can be served stale while it | ||
| revalidates instead of being dropped outright. `writeTags` accepts either a tag name or a | ||
| `{ tag, stale, expire }` object, both tag cache flavours gained an optional `isStale`, and the | ||
| composable cache handler implements the `updateTags` method added in Next.js 16. | ||
|
|
||
| Tag cache overrides that need to deduplicate work within a request can use the new per-request | ||
| `requestCache` on the OpenNext request context. | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.