flutter_cache_store icon indicating copy to clipboard operation
flutter_cache_store copied to clipboard

eTag / If-None-Match Request header support

Open stefanpieck opened this issue 5 years ago • 1 comments

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?

stefanpieck avatar Jan 07 '20 09:01 stefanpieck

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.

eGust avatar Jan 11 '20 01:01 eGust