alp
05/01/2025, 10:15 PMCache-Control
response headers, I noticed that if memory cache is enabled and there is an image in the cache for the requested key, then the cache control header is not respected because cached value is returned before CacheControlCacheStrategy
is queried. Is it an expected behavior or there is a way to configure coil to respect cache control with the memory cache enabled?jw
05/01/2025, 10:47 PMalp
05/01/2025, 11:11 PMColin White
05/08/2025, 4:13 PMColin White
05/08/2025, 4:15 PMmemoryCachePolicy(CachePolicy.DISABLED)
and manually check the memory cache yourself inside a custom interceptor after verifying the cache headers, though there are likely pitfalls therealp
05/08/2025, 4:46 PMNetworkResponse
in memory cache for a memory key and querying the CacheControlStrategy
every time a memory entry is queried.
I figured that Computation
from the cache control is fast and doesn’t do any i/o so it should be fine to query in the memory cache.
It didn’t work as expected because I couldn’t get access to the current NetworkRequest
inside the memory cache so I stopped the research because it that felt too hacky to be used in prod anyway.alp
05/08/2025, 4:47 PMYou could possibly setwill it require to basically copy theand manually check the memory cache yourself inside a custom interceptor after verifying the cache headers, though there are likely pitfalls therememoryCachePolicy(CachePolicy.DISABLED)
Computation
logic? That’s smth I wanted to avoid