[squid-users] Squid 3.5.27 not caching at all
squid3 at treenet.co.nz
Sat Aug 3 10:36:28 UTC 2019
On 3/08/19 9:45 pm, Mohamed Ali Ahmed wrote:
> Hello everyone,
> I have set up Squid 3.5.27 on ubuntu 18.04 from the packages. I have
> made the minimal change but when i check the access.log i get tcp_miss
> 200 most of the websites even visiting the same website over and over again.
You have not provided enough information for us to know whether this is
a problem or testing mistake.
What is this unstated "minimal change" you made that made caching
suddenly stop working?
What exactly does "visiting the same website over and over again" mean?
what exact actions did you do?
- Pressing refresh, Shift+reload, or CTL+refresh in a browser will
*force* a MISS - yet comes under the description you gave.
- some tools send headers to forbid cached contents being delivered by
default. So cannot be used for this kind of test without special options.
The more specific details you can give, the better anyone help can be.
> I have searched online and i did not come across any which solves my
> this is squid.conf file:
> root at squid:/etc/squid# sed 's/#.*//;s/^\s*$//;/^$/d' /etc/squid/squid.conf
> acl NOC src 184.108.40.206
> acl SSL_ports port 443
> acl Safe_ports port 80
> acl Safe_ports port 21
> acl Safe_ports port 443
> acl Safe_ports port 70
> acl Safe_ports port 210
> acl Safe_ports port 1025-65535
> acl Safe_ports port 280
> acl Safe_ports port 488
> acl Safe_ports port 591
> acl Safe_ports port 777
> acl CONNECT method CONNECT
> http_access deny !Safe_ports
> http_access deny CONNECT !SSL_ports
> http_access allow localhost manager
> http_access deny manager
> http_access allow localhost NOC
> http_access allow all
Please do not do that "allow all".
For one thing it makes your NOC ACL pointless, *everybody* is allowed to
use your proxy for whatever they want to do.
If you did it to debug a caching problem, be aware that http_access has
nothing to do with cache.
More information about the squid-users