Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Respect response headers #81

Open
kmcgill88 opened this issue Mar 2, 2019 · 2 comments
Open

Respect response headers #81

kmcgill88 opened this issue Mar 2, 2019 · 2 comments
Projects

Comments

@kmcgill88
Copy link

Great work! Does this package respect Cache-Control headers? Specifically, if a server responds with Cache-Control: no-cache and I pass cacheRule: CacheRule(maxAge: const Duration(days: 7)), will this lib ignore the server and still cache the image for 7 days? What takes priority.

Thanks!

@mchome
Copy link
Owner

mchome commented Mar 2, 2019

Unfortunately no, this package only respects to CacheRule.

@kmcgill88
Copy link
Author

That's the behavior I'm looking for. I want to ignore the server headers and set my own cache duration. That could be a cool feature to add at some point. Allowing devs to set priority headers from the server or use only the cache rule.

@mchome mchome added this to TODO in feature Mar 3, 2019
@mchome mchome changed the title Is Cache-Control header respected? Respect response headers Mar 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
feature
  
TODO
Development

No branches or pull requests

2 participants