Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to set up Linux to cache some commonly requested URLs so that it doesn't have to go out to the net to get them every time. This would be a system-wide URL cache, not just in a particular browser. For example, a program might request http://www.w3.org/TR/html4/sgml/loosedtd.html a few thousand times per day. There are many other URLs I'd like to cache as well.

Is there an app for that?

share|improve this question
add comment

1 Answer

Yes, these "apps" are called HTTP proxies and one example for a HTTP proxy is squid which can be installed like this:

sudo apt-get install squid3

After installation you have to configure your program to use localhost:3128 or to use the system wide proxy settings if this is supported by your application. The system wide proxy settings can be configured in your network settings.

Another possibility is to configure squid as a transparent proxy. In that case you don't have to configure your applications but it can be more difficult to setup.

Either way you should check the squid configuration to fine-tune the cache settings if the default settings don't work well for you.

See the Squid Homepage or the Ubuntu Wiki page for Squid for documentation.

share|improve this answer
add comment

Your Answer

 
discard

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.