I would like to in some cases make transparent caching for certain sites. Let's say that I have a static list of site from where I want to cache all downloads, ie: the client wants to download www.hotsite.com/afile.ext and the transparent proxy intersects the request, downloads the file, caches it, and the next time some client requests for that file it retrieves the file from the cache instead for downloading it again. I don't care if the remote file changes in time, what options do I have?
Update 1: So far I've been using Varnish but it does not handles https and also I'm having problems with the cache manipulation (due to my inexperience)