You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/core/services/api/http/http_service.dart
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,7 @@ class HttpService {
142
142
_logger.w("Not caching response for $endpoint due to client error with status code ${response.statusCode}");
143
143
return;
144
144
}
145
+
if (!_isCacheable(endpoint)) returnnull;
145
146
_logger.d("Caching response for $endpoint");
146
147
final cacheKey ="${method.hashCode}${endpoint.hashCode}${json.encode(_cacheEnabledHeaders(headers)).hashCode}${body.hashCode}${fromJson.runtimeType.hashCode}";
0 commit comments