Tag: squid
About
Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to caching web, DNS and other computer network lookups for a group of people sharing network resources, to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and HTTPS. The development version of Squid (3.0) includes preliminary IPv6 support.
Squid has been developed for many years. Early work on the program was completed at the University of California, San Diego and funded via two grants from the National Science Foundation.
Squid is primarily designed to run on Unix-like systems but runs perfectly on Windows-based systems with Cygwin. Released under the GNU General Public License, Squid is free software.
From en.wikipedia.org/wiki/Squid_cache
If you're running Squid to cache your website, you can use an htaccess file to control what kind of files should be cached, and for how long.
Let's say your site is becoming a big success and as a result it's becoming slower and slower. There are several things you do without buying additional hardware.
I recently had to install a couple of squid servers to act as reverse proxies for a webcluster. You can teach the squid server to stand in between in the end users and the webservers, and to store all the static content ( .jpg .flv .css .htm for example ) in the RAM. This saves a lot of I/O and bandwidth on the webservers, and it can really speeds up a site. And the end of the road the webservers' load dropped with 92%. But before all this worked, I had to run through a massive config file and since the squid config file is their manual at the same time, it's about 5000 lines long. So I had to find out a way to filter only the important settings from the config file.