flutter_advanced_networkimage
flutter_advanced_networkimage copied to clipboard
Respect response headers
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!
Unfortunately no, this package only respects to CacheRule.
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.