====== Squid - Configure Squid ======
**WARNING:** The refresh pattern on this config are **very aggressive** and sometimes a user will get old cached pages even for those sites which updates on daily basis,
if you face such issues, remove following directives from refresh pattern.
ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
----
# SQUID 2.7 CONFIG FILE
# By - Syed Jahanzaib
# Email: aacable@hotmail.com
# Web : https://aacable.wordpress.com
# PORT and Transparent Option
http_port 8080 transparent
server_http11 on
icp_port 0
# Cache Directory , modify it according to your system.
# but first create directory in root by
# mkdir /cache1
# chown proxy:proxy /cache1
# [for ubuntu user is proxy, in Fedora user is SQUID]
# I have set 100 GB for caching, Adjust it according to your need.
# My recommendation is to have one cache_dir per drive. zzz
store_dir_select_algorithm round-robin
cache_dir aufs /cache1 100000 16 256
#cache_dir ufs /mnt/hdd2/cache2 200000 16 256 # If you have secondary HDD
memory_replacement_policy heap GDSF
cache_replacement_policy heap GDSF
# If you want to enable DATE time n SQUID Logs,use following
emulate_httpd_log on
logformat squid %tl %6tr %>a %Ss/%03Hs %
----
===== References =====
https://aacable.wordpress.com/tag/squid-refresh-pattern/