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

Fetch: Integration with the Cache API #52

Open
dr-vortex opened this issue Oct 25, 2023 · 1 comment
Open

Fetch: Integration with the Cache API #52

dr-vortex opened this issue Oct 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dr-vortex
Copy link
Member

dr-vortex commented Oct 25, 2023

@billiegoose:

I'm not actually working on this yet (I'm still using IndexedDB in the Service Worker), but I think it would be cool so I'll write this idea down anyway.

It's still experimental, but the Cache API is very cool:

  • it's a key / value store
  • for arbitrary files (no need to serialize/deserialize)
  • supports streaming
  • no fixed size limits (limits are determined by the quota API which is still in development)
  • caches global available in both Window and Service Worker scopes
  • supports quickly downloading and caching a batch of files for offline access via Cache.addAll()

@jvilk:

Sounds nice. I would call it CacheStorageFS instead, since I would like to have some sort of generic caching file system implemented in the future (jvilk/BrowserFS#95).

jvilk/BrowserFS#191

@dr-vortex dr-vortex added the enhancement New feature or request label Oct 25, 2023
@dr-vortex dr-vortex added enhancement New feature or request and removed enhancement New feature or request labels Oct 25, 2023
@dr-vortex
Copy link
Member Author

dr-vortex commented Mar 23, 2024

Looking into the Cache API, it can only cache Requests/Responses. That means it is limited to fetch requests.

@dr-vortex dr-vortex transferred this issue from zen-fs/core Mar 23, 2024
@dr-vortex dr-vortex changed the title New backend proposal: CacheStorageFS Integration with the Cache API Mar 23, 2024
@dr-vortex dr-vortex transferred this issue from zen-fs/fetch May 8, 2024
@dr-vortex dr-vortex changed the title Integration with the Cache API Fetch: Integration with the Cache API May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant