vigetlabs / gangway

A client-side API abstraction layer
MIT License
13 stars 1 forks source link

Support for window.caches #39

Closed nhunzaker closed 8 years ago

nhunzaker commented 8 years ago

Part of the service worker spec includes a caching API Should we do this?

https://developer.mozilla.org/en-US/docs/Web/API/Window/caches

What would it look like to provide sugar for defining caching policies?

cc @brianjlandau @mackermedia @greypants

brianjlandau commented 8 years ago

Seems very cool, but seems very new, not well supported and the spec is still a work in progress. My analysis: this seems a little fringe to be using just yet.

nhunzaker commented 8 years ago

@brianjlandau Fair. But caching has come up in the past. Is the feature itself an useful one?

brianjlandau commented 8 years ago

Well caching would be useful yes. How is it decided when these caches expire? Or how do you tell it? Can you give it a TTL?

nhunzaker commented 8 years ago

Yeah. Hard call. I'm fine waiting on this until I know more about the cache api that comes with fetch.