Skip to content

fix(cache): re-enable Coil disk cache to stop image re-download on launch#1021

Merged
bmc08gt merged 1 commit into
code/cashfrom
chore/enable-coil-disk-cache
Jun 30, 2026
Merged

fix(cache): re-enable Coil disk cache to stop image re-download on launch#1021
bmc08gt merged 1 commit into
code/cashfrom
chore/enable-coil-disk-cache

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Disabling Coil's disk cache (diskCachePolicy DISABLED) made its NetworkFetcher stamp Cache-Control: no-cache, no-store on every image request, which forced OkHttp's cache to neither read nor write responses — so every image was fully re-downloaded on each cold start. Replace the OkHttp http_image_cache with Coil's own DiskCache as the single persistent image layer.

…unch

Disabling Coil's disk cache (diskCachePolicy DISABLED) made its NetworkFetcher
stamp Cache-Control: no-cache, no-store on every image request, which forced
OkHttp's cache to neither read nor write responses — so every image was fully
re-downloaded on each cold start. Replace the OkHttp http_image_cache with
Coil's own DiskCache as the single persistent image layer.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 30, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Jun 30, 2026
@bmc08gt bmc08gt merged commit 89194a7 into code/cash Jun 30, 2026
3 checks passed
@bmc08gt bmc08gt deleted the chore/enable-coil-disk-cache branch June 30, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant