Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Use customized urlRequestConfiguration.cachePolicy in requesting #177

Open
torufuruya opened this issue Sep 1, 2023 · 0 comments · May be fixed by #178
Open

Use customized urlRequestConfiguration.cachePolicy in requesting #177

torufuruya opened this issue Sep 1, 2023 · 0 comments · May be fixed by #178
Labels
enhancement New feature or request

Comments

@torufuruya
Copy link

torufuruya commented Sep 1, 2023

Is your feature request related to a problem? Please describe.

I'm observing some of my image URLs are not fetched from the remote source once 404 responses for that were cached (Is it expected behavior in the first palce?). So I tried to change urlRequestConfiguration.cachePolicy but it seems only urlRequestConfiguration.allHTTPHeaderFields is used.

Describe the solution you'd like

If my understanding is correct, it can be done by setting the download.urlRequestConfiguration.cachePolicy on making the URLSessionTask in URLSessionCoordinator.
https://github.com/dmytro-anokhin/url-image/blob/main/Dependencies/Sources/DownloadManager/URLSession/URLSessionCoordinator.swift#L166-L167

Describe alternatives you've considered

N/A

Additional context

N/A

@torufuruya torufuruya added the enhancement New feature or request label Sep 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant