Support serializable options to configure caching route rules
Open
@pi0 is already working on this.
Since Oct 5, 2023.
cache
discussion
enhancement
v2
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
Related: https://github.com/unjs/nitro/issues/977
Since route rules only accept serializable options, and for best DX, we can introduce a configuration API that defines caching route rules as an alternative to non-serializable options (shouldInvalidateCache ~> invalidateHeaders, getKey ~> keyTemplate)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.