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
james-pre opened this issue Oct 25, 2023 · 1 comment
Open

Fetch: Integration with the Cache API #52

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

Comments

@james-pre
Copy link
Member

james-pre 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

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

james-pre commented Mar 23, 2024

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

@james-pre james-pre transferred this issue from zen-fs/core Mar 23, 2024
@james-pre james-pre changed the title New backend proposal: CacheStorageFS Integration with the Cache API Mar 23, 2024
@james-pre james-pre transferred this issue from another repository May 8, 2024
@james-pre james-pre 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