[squid-users] Squid 3.5.27 not caching at all

Mohamed Ali Ahmed mbile20 at gmail.com
Sat Aug 3 09:45:14 UTC 2019


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.

I have searched online and i did not come across any which solves my
problem.

this is squid.conf file:

root at squid:/etc/squid# sed 's/#.*//;s/^\s*$//;/^$/d' /etc/squid/squid.conf
 acl NOC src 154.73.26.5
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
http_port 3128
cache_dir ufs /var/spool/squid 100 16 256
coredump_dir /var/spool/squid
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 3600       90%     43200
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .               0       20%     4320
root at squid:/etc/squid#

here's access.log file:

1564825166.134    426 154.73.26.5 TCP_MISS/200 10644 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/js/extensions/revolution.extension.layeranimation.min.js
- HIER_DIRECT/192.185.31.191 application/javascript
1564825166.142    436 154.73.26.5 TCP_MISS/200 8613 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/js/extensions/revolution.extension.slideanims.min.js
- HIER_DIRECT/192.185.31.191 application/javascript
1564825166.150    440 154.73.26.5 TCP_MISS/200 8771 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/js/extensions/revolution.extension.navigation.min.js
- HIER_DIRECT/192.185.31.191 application/javascript
1564825166.156    450 154.73.26.5 TCP_MISS/200 2892 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/js/extensions/revolution.extension.actions.min.js
- HIER_DIRECT/192.185.31.191 application/javascript
1564825166.804    454 154.73.26.5 TCP_MISS/200 7970 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/fonts/revicons/revicons.woff?
- HIER_DIRECT/192.185.31.191 font/woff
1564825166.821    437 154.73.26.5 TCP_MISS/200 2982 GET
http://somaliren.org/wp-content/plugins/revslider/public/assets/assets/loader.gif
- HIER_DIRECT/192.185.31.191 image/gif


Here's cach.log file:

root at squid:/etc/squid# tail /var/log/squid/cache.log
2019/08/03 12:05:00 kid1|         0 Objects expired.
2019/08/03 12:05:00 kid1|         0 Objects cancelled.
2019/08/03 12:05:00 kid1|         0 Duplicate URLs purged.
2019/08/03 12:05:00 kid1|         0 Swapfile clashes avoided.
2019/08/03 12:05:00 kid1|   Took 0.10 seconds (  0.00 objects/sec).
2019/08/03 12:05:00 kid1| Beginning Validation Procedure
2019/08/03 12:05:00 kid1|   Completed Validation Procedure
2019/08/03 12:05:00 kid1|   Validated 0 Entries
2019/08/03 12:05:00 kid1|   store_swap_size = 0.00 KB
2019/08/03 12:05:01 kid1| storeLateRelease: released 0 objects

Any help would be appreciated.

thanks,
Mohamed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20190803/28c6e860/attachment.html>


More information about the squid-users mailing list