Our company's proxy is a rather typical corporate setup: it man-in-the-middles SSL connections, tries virus-checking on download and so on. As usual, this setup is rather flaky, which often results in broken incomplete downloads. Since we are doing automated Python packaging, we need complete files, so I wanted to setup a caching reverse proxy to https://pypi.python.org to reduce the pain at least a little bit.
The proxy/cache part is no problem with
mod_cache, but the actual problem are incomplete downloads. Since the target server sends a proper
Content-Length header, it should be possible to check whether a file is complete before caching and if not, resume that download in a second (and possible third, fourth etc.) try.
Is it possible to implement this with Apache 2.2 with
mod_cache (or any alternative software, like Nginx)?