Squid proxy misses?



  • Hi, I was wondering if someone could help me on why there are so much misses the only hits are a few of bitdefender updates but besides that everything is a miss.

    I know that there is going to be alot more misses then hits but atleast a few webpages should cache quicker or lets say a few bitdefender updates

    For example: idownloadblog.com is an http site but keeps showing misses see pictures for my config

    Thank you








  • You have to look at the real squid logs.  Any URL that has a ? I think is considered dynamic and won't be cached.  Others will show a MISS if the file size is different.



  • Hi,
    Kom thank you for the reply,

    When you say the real squid logs? the /var/squid/logs/access.log

    I also saw that by enabling Cache Dynamic Content and adding Custom refresh_patterns breaks squid?

    but lets say downloads of 1gig would it be able to cache?

    Thank you



  • I also saw that by enabling Cache Dynamic Content and adding Custom refresh_patterns breaks squid?

    That's new sot me, but I haven't been following along with squid and dok's updates lately.  I think the refresh_patterns work as long as you know what you're doing.

    but lets say downloads of 1gig would it be able to cache?

    As long as it's not dynamic, then yes it should cache.  Linux updates cache just fine.  Most AV updates that I know of cache just fine.  Windows updates don't, except Windows 10 updates which seem to cache.  Others say they can get WU to cache fine, but I've never been able to do it.



  • Thanks for the reply,

    been looking at the logs one of them is

    192.168.3.3 TCP_MISS/200 107200 GET http://www.idownloadblog.com/ - ORIGINAL_DST/192.96.201.17 text/html
    

    odd it does not have a ? but it missed it

    but i see this

    192.168.3.3 TCP_MEM_HIT/200 1866 GET http://www.idownloadblog.com/wp-content/themes/idownloadblog/images/favicon.ico - HIER_NONE/- image/x-icon
    

    ???

    then tried to download something random an ipsw

    192.168.3.3 TCP_MISS_ABORTED/200 893388 GET http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-3538.20070629.B7vXa/iPhone1,1_1.0_1A543a_Restore.ipsw - ORIGINAL_DST/173.205.27.35 application/octet-stream
    

    then re down loaded it again

    192.168.3.3 TCP_MISS/200 95604808 GET http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-3538.20070629.B7vXa/iPhone1,1_1.0_1A543a_Restore.ipsw - ORIGINAL_DST/173.205.27.51 application/octet-stream
    

    EDIT:

    so i tried using another site to check my cache

    192.168.3.3 TCP_MEM_HIT/200 8120 GET http://www.lagado.com/tools/cache-test - HIER_NONE/- text/html
    
    192.168.3.3 TCP_MEM_HIT/200 1447 GET http://www.lagado.com/tools/inc/main.css - HIER_NONE/- text/css
    

    Followed what the page told me and it did apear the same serial

    But whats odd are the downloads  :-\



  • Static files always seem to cache just fine.  Any other magic can cause problems.  Squid's current stable branch is 3.5 and I'm not sure if being back in 3.4.x has anything to do with some content not caching.  I"m not an expert on squid, but I've gotten a lot of useful info from the main squid site:

    http://www.squid-cache.org/



  • Thanks for the reply,

    I was wondering currently im using squid3 do you recommend squid the old version?



  • No.


  • Banned

    This post is deleted!

Log in to reply