Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SQUID range_offset_limit - understanding problem

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 5.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nachtfalke
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.