Description
suppose some large file is in the cache already and we make a request for partial content with a Range
header.
understanding that caching of such things is likely to go wrong we also include the header Cache-Control: no-cache
.
this header succeeds in preventing cachecontrol from responding immediately from the cache - but does not stop it from going through
cachecontrol/cachecontrol/adapter.py
Line 74 in 7e3edbf
cachecontrol/cachecontrol/controller.py
Line 273 in 7e3edbf
If-Modified-Since
header to the request, with timestamp per what is in the cache.
but now the server sees the header on that request, knows that the file has not been modified recently, and returns 304. And now cachecontrol returns the entire file from its cache anyway, and not the partial content that the server would have given.
related-ish: #246 asks for cachecontrol to cache partial content. But this one reports that cachecontrol makes partial content not work