🐛 Bug Report: CachedNetworkImage fails to load valid .jfif image
Summary
CachedNetworkImage is unable to load a valid .jfif image from a remote URL. The same image opens correctly in Chrome and is accessible via a direct HTTP request.
Expected behavior
The image should load successfully, just like any other JPEG image.
Actual behavior
CachedNetworkImage fails to display the image and shows the errorWidget. The image URL is publicly accessible and renders correctly in web browsers.
Example image URL:
https://red-hare-111523.hostingersite.com/api/uploads/097152_2026_FOREST_RIVER_TA3_8_overlay_1762966844_20260717_150907_099064a5.jfif
Reproduction steps
- Install the latest
cached_network_image package.
- Use the following widget:
CachedNetworkImage(
imageUrl: "https://red-hare-111523.hostingersite.com/api/uploads/097152_2026_FOREST_RIVER_TA3_8_overlay_1762966844_20260717_150907_099064a5.jfif",
fit: BoxFit.cover,
placeholder: (context, url) => const CircularProgressIndicator(),
errorWidget: (context, url, error) => const Icon(Icons.error),
)
- Run the application.
- Observe that the image fails to load.
Additional information
- The same URL opens successfully in Chrome.
- The image is publicly accessible (no authentication required).
- The issue appears to be specific to
.jfif images.
- Other
.jpg and .png images load correctly using CachedNetworkImage.
Configuration
cached_network_image version:
<your version>
flutter version:
Platform:
Environment
- Flutter:
- Dart:
- cached_network_image:
- flutter_cache_manager:
- Device:
- Android Version:
Screenshots / Logs

🐛 Bug Report:
CachedNetworkImagefails to load valid.jfifimageSummary
CachedNetworkImageis unable to load a valid.jfifimage from a remote URL. The same image opens correctly in Chrome and is accessible via a direct HTTP request.Expected behavior
The image should load successfully, just like any other JPEG image.
Actual behavior
CachedNetworkImagefails to display the image and shows theerrorWidget. The image URL is publicly accessible and renders correctly in web browsers.Example image URL:
Reproduction steps
cached_network_imagepackage.Additional information
.jfifimages..jpgand.pngimages load correctly usingCachedNetworkImage.Configuration
cached_network_image version:
<your version>flutter version:
Platform:
Environment
Screenshots / Logs