How to enable caching on Squid for Windows?

Important

Please consider going through the open issues with current Squid for Windows build before using it in production, see https://github.com/diladele/squid-windows/issues. It is almost as easy to use Hyper-V build of latest Squid 4 and Web Safety for your Windows deployments without limitations of the Windows specific build.

If you are using our installer for Squid for Windows from http://squid.diladele.com please follow these steps to enable disk caching. It is assumed the disk cache will be created in d:\squidcachedir folder.

  1. Make sure that the directory d:\squidcachedir exists and empty (create with mkdir command if necessary).

  2. Add the caching directive to the config file squid.config

    cache_dir aufs /cygdrive/d/squidcachedir/cache 3000 16 256
    
  3. Stop the squid service

  4. Run the squid terminal shortcut on your desktop as administrator and perform the following commands:

    squid.exe -z
    
  5. Start the squid service again