Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to setup squid (or another caching proxies) to cache any http/https request from my own computer?

i will use it to record all request and get the downloaded files from software that does not show the url's or redownload packages that already been downloaded (such as Yaourt --> this package always redownload packages that already been downloaded, it's really takes too much bandwidth for big packages)

share|improve this question

Caching https is hard to set up, sorry. You need to create a local CA certficate, and configure the client programs to accept it. I don't know what proxy software you'd have to use for it.

Squid isn't great for caching large downloads. It doesn't support partial instances, i.e. resuming interrupted downloads.

Polipo supports partial instances, and I love it as a personal proxy. It has been slightly unreliable at times. In particular it may suffer if you have an old dnsmasq implementation on your home router, which gets confused by simultaneous DNS queries for ipv4 and ipv6. It does not support https interception/caching.

Hopefully your client software respects the standand environment variables like $http_proxy. If your distro supports it, you can set e.g. http_proxy=http://localhost:8123/ in /etc/environment, and it will be set at login time by pam_env. (debian suffered from a bug at some recent point which disabled this, but I think it's working on my current debian unstable machine).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.