diff --git a/flutter_cache_manager/lib/src/web/web_helper.dart b/flutter_cache_manager/lib/src/web/web_helper.dart index e7e0ef37..3f6dea0e 100644 --- a/flutter_cache_manager/lib/src/web/web_helper.dart +++ b/flutter_cache_manager/lib/src/web/web_helper.dart @@ -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);