Skip to content

Commit

Permalink
https://github.com/Baseflow/flutter_cached_network_image/issues/336
Browse files Browse the repository at this point in the history
  • Loading branch information
miich43l committed Nov 13, 2022
1 parent 5fc7752 commit a5cbd6b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flutter_cache_manager/lib/src/web/web_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ class WebHelper {
CacheObject cacheObject, FileServiceResponse response) async* {
final hasNewFile = statusCodesNewFile.contains(response.statusCode);
final keepOldFile = statusCodesFileNotChanged.contains(response.statusCode);
if (!hasNewFile && !keepOldFile) {
throw HttpExceptionWithStatus(
response.statusCode,
'Invalid statusCode: ${response.statusCode}',
uri: Uri.parse(cacheObject.url),
);
}
// if (!hasNewFile && !keepOldFile) {
// throw HttpExceptionWithStatus(
// response.statusCode,
// 'Invalid statusCode: ${response.statusCode}',
// uri: Uri.parse(cacheObject.url),
// );
// }

final oldCacheObject = cacheObject;
var newCacheObject = _setDataFromHeaders(cacheObject, response);
Expand Down

0 comments on commit a5cbd6b

Please sign in to comment.