Skip to content

Browser's Cache API as backing storage? #668

Closed Answered by arthurfiorette
martijnthe asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @martijnthe.

Regarding Cache API, it only stores Request/Response objects which isn't what axios uses, (altough it has a request.request property with it). We cannot convert both of them interchangeably with axios, so I don't think this would ever get implemented. Also its use case is more focused on when you cannot express your cache mechanism over cache-control/related headers and need to reject cache by default and enable them manually through javascript, as you can see in this MDN example...

We are working on shipping a idexed db storage (#669). However, I do not think caching files over 100mb would be a good thing to be done manually by any library. The browser built-in cache sho…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@martijnthe
Comment options

Answer selected by martijnthe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants