flutter_cache_store
flutter_cache_store copied to clipboard
eTag / If-None-Match Request header support
I'm missing a possibillity to integrate etag support in combination with the If-None-Match request header.
As far as I can see there is no way in the CacheStorePolicy to check whether a cached entry needs to be revalidated or not and to push that information to the fetcher. Or am I overseeing something?
i don't think this lib is what you want.
my initial requirement is very simple: cache some static URLs of images. so it's based on http which provides high-level request interfaces.
eTag or gzip/deflate headers should be handled at the same or lower level of http
, not a higher level.
tbh, CacheStorePolicy
was written mostly for demo. i did not expect it to be used for caching api requests.
your requirements are way complicated. a lot of work to do and proper tests. it will be much bigger than this project.