<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>Hey guys,<br>
    </p>
    <p>First take a look at the log:<br>
    </p>
    <p>root@proxy:/var/log/squid# tail -f access.log |grep
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a><br>
      1463011781.572   8776 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.9 application/octet-stream<br>
      1463011851.008   9347 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463011920.683   9645 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.9 application/octet-stream<br>
      1463012000.144  19154 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463012072.276  12121 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463012145.643  13358 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463012217.472  11772 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463012294.676  17148 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
      1463012370.131  15272 10.1.3.236 TCP_MISS/206 300520 GET
<a class="moz-txt-link-freetext" href="http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar">http://download.cdn.mozilla.net/pub/firefox/releases/45.0.1/update/win32/pt-BR/firefox-45.0.1.complete.mar</a>
      - HIER_DIRECT/200.216.8.32 application/octet-stream<br>
    </p>
    Now think: An user is just doing a segmented/ranged download, right?
    Squid won't cache the file because it is a range-download, not a
    full file download.<br>
    But I WANT squid to cache it. So I decide to use "range_offset_limit
    -1", but then on every GET squid will re-download the file from the
    beginning, opening LOTs of simultaneous connections and using too
    much bandwidth, doing just the OPPOSITE it's meant to!<br>
    <br>
    Is there a smart way to allow squid to download it from the
    beginning to the end (to actually cache it), but only on the FIRST
    request/get? Even if it makes the user wait for the full download,
    or cancel it temporarily, or.. whatever!! Anything!!<br>
    <br>
    Best Regards,<br>
    <pre class="moz-signature" cols="72">-- 
Heiler Bemerguy - (91) 98151-4894
Assessor Técnico - CINBESA (91) 3184-1751</pre>
  </body>
</html>