Squid is best ran in a reverse proxy type environment, as it has the ability to terminate half open connections, as well as validate end clients, and it also has the ability to scale more connections, so it's generally great for GET floods if you run it in a reverse proxy type environment. I don't think you'd notice much improvement if you run it on the same machine as the web server.