Closed nicoache1 closed 4 years ago
+1
Hi, thanks for your issue;
baseUrl is optional;
interceptors is required;
Only requests that add the buildCacheOption will cache the data, like below:
Dio().get(
"http://www.google.com",
options: buildCacheOptions(Duration(days: 7)),
);
First of all thanks for your amazing package!
I see in the README that you need to enable and interceptor with a BaseUrl. How this exactly works? is mandatory? I mean i can only set the CacheManager with no baseUrl? All these questions arose because i have a case when I want to cache some requests but others don't, how do i should do that? set in the request maxAge to 0?