SQUID range_offset_limit - understanding problem



  • Hi,

    I read in the docs abou squid and caching windows updates. I read on squid-cache.org abot range_offset_limit -1 which forces squid to download the complete file.
    If I do NOT use range_offset_limit -1 then it is like range_offset_limit 0 which means no download.

    Now my question is, if I use different refresh_pattern, should I use after every line again range_offset_limit -1 ?

    Example:

    
    refresh_pattern -i .*microsoft\.com/.*\.(cab|exe|msi|msp) 86400 100% 86400 reload-into-ims;
    range_offset_limit -1;
    refresh_pattern -i .*windowsupdate\.com/.*\.(cab|exe|msi|msp) 86400 100% 86400 reload-into-ims;
    range_offset_limit -1;
    
    

    or is it enough with:

    
    refresh_pattern -i .*microsoft\.com/.*\.(cab|exe|msi|msp) 86400 100% 86400 reload-into-ims;
    refresh_pattern -i .*windowsupdate\.com/.*\.(cab|exe|msi|msp) 86400 100% 86400 reload-into-ims;
    range_offset_limit -1;
    
    

    Thanks for helping me.



  • Hi,

    I found out, that the first part is nonsense.
    one times "range_offset_limit -1" is enough.

    Further I found out, how to cache kaspersky updates:

    
    refresh_pattern -i .*kaspersky\.com/.*\.(.*) 1440 100% 1440 reload-into-ims override-expire override-lastmode;
    refresh_pattern -i .*kaspersky-labs\.com/.*\.(.*) 1440 100% 1440 reload-into-ims override-expire override-lastmode;
    
    

    For me this works - I think.


Log in to reply