Skip to content
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

CacheOverride Simplifications #1052

Open
guybedford opened this issue Nov 22, 2024 · 0 comments
Open

CacheOverride Simplifications #1052

guybedford opened this issue Nov 22, 2024 · 0 comments

Comments

@guybedford
Copy link
Member

We could simplify the CacheOverride interface with the following steps:

  1. Make the first string arg optional - replace new CacheOverride('override', { ... }) with just new CacheOverride({ ... })
  2. Treat new CacheOverride('none') as just cacheOverride: null | undefined or otherwise
  3. Treat new CacheOverride('pass') as just cacheOverride: 'pass' or even cache: 'no-store' per Support fetch cache option #1050
  4. Support the CacheOverride being passed as an interface of options directly instead of having to have it explicitly constructed

With the above, we could then potentially deprecate the constructor in due course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant