Search squid archive

Refresh Pattern useless?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm beginning to conclude that refresh pattern in Squid is useless.
I had a neat refresh pattern which is supposed to help cache just about everything, below:

refresh_pattern ([^.]+\.)?(download|(windows)?update)\.(microsoft\.)?com/.*\.(cab|exe|msi|msp|psf) 4320 100% 43200 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth ignore-no-store refresh_pattern ([^.]+.|)(download|adcdownload).(apple.|)com/.*\.(pkg|dmg) 4320 100% 43200 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth ignore-no-store refresh_pattern ([^.]+.|)avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims refresh_pattern ([^.]+.|)spywareblaster.net/.*\.(dtb) 4320 100% 64800 reload-into-ims refresh_pattern ([^.]+.|)symantecliveupdate.com/.*\.(zip|exe) 43200 100% 43200 reload-into-ims refresh_pattern ([^.]+.|)avast.com/.*\.(vpu|vpaa) 4320 100% 43200 reload-into-ims refresh_pattern (avgate|avira).*(idx|gz)$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims refresh_pattern kaspersky.*\.avc$ 1440 999999% 10080 ignore-no-cache ignore-no-store ignore-reload reload-into-ims refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320

----

And it barely cached any of the content it's supposed to. I never once saw "TCP_HIT" in the logs. And it seems like when I removed these refresh patterns (leaving the defaults), I finally saw TCP_HIT's in the log file...
So is refresh pattern useless? Or am I just doing this wrong??!!

I want to be able to cache Windows Updates, Apple Updates and possibly Linux Repositories as well (without some other fancy program for that). I also want to be able to cache various Anti-Virus vendors sites, so updating virus signatures are a lot faster. And to be able to cache generic content such as images, media files and software.

I want to be able to do this all in Squid... But it seems useless....

Unless someone else has other suggestions? The only thing I'm seeing TCP_HIT's on is video content, as I'm using VideoCache. But this isn't enough... I want just about everything to be cached. My proxy server is a dedicated proxy system with 1 TB of hard drive space for caching.

My squid configuration can be viewed here: http://pastebin.com/XW5yZmvk


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux