[squid-users] refresh_pattern and same objects

FredB fredbmail at free.fr
Mon Aug 31 16:01:43 UTC 2015


> 
> I'm thinking about something like this
> 
> 


Sorry wrong move :)

So, What I meant was 

I'm thinking about something like this

# HTTP 1/1
# The refresh_pattern rules applied only to responses without an explicit expiration time
# min 1440 minutes
# Max 10080 minutes

# http 10080 / 60 / 24 H = 7 days
refresh_pattern ^http 1440 10% 10080

# All Files 30 days max
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt)       43200 99% 43200 ignore-no-cache ignore-no-store reload-into-ims store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar)  43200 99% 43200 ignore-no-cache ignore-no-store reload-into-ims store-stale
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll)         43200 99% 43200 ignore-no-cache ignore-no-store reload-into-ims store-stale
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 99% 43200 ignore-no-cache ignore-no-store reload-into-ims store-stale
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 99% 43200 ignore-no-cache ignore-no-store reload-into-ims store-stale

Maybe my values are too high ? 

About reload-into-ims if I understand right it translates "Pragma: no-cache" into "If-Modified-Since" if the object is cached and if there is no explicit expiration time, in real life this should be dangerous or annoying for users ?

The context is many simultaneous users (thousands) with very different kind of profiles

Regards

FredB


More information about the squid-users mailing list