Logging messages in web server log format

When we use Squid in reverse proxy mode, most of our web server log messages will go missing as the requests which can be satisfied from Squid's cache will never make it to the web server. So, Squid's access log will be our source of web server logs now. However, the problem is that, by default Squid's access log format is completely different to the log format used by most web servers. To get rid of this problem, we can use the common log format with the access_log directive and this will allow Squid to start logging messages in the Apache web server log format.

Ignoring the browser reloads

Most browsers have a reload button, which if used, sets the Cache-Control HTTP header to no-cache. This will force ...

Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.