<p dir="ltr">Thanks for the confirmation.</p>
<p dir="ltr">Would it be something to change the behaviour of squid-deb-proxy, matching the master repository Package.gz file for checksum when the cache gets hit and force re cache of the package if it's different?</p>
<p dir="ltr">Have a good day<br>
--<br>
Eric<br></p>
<br><div class="gmail_quote">On Fri, May 1, 2015, 17:46 Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2/05/2015 3:00 a.m., Eric Keller wrote:<br>
> Hi everyone,<br>
><br>
> I did encounter a strange behavior with my squid-deb-proxy server.<br>
> on the master Debian repository server I forced publish an already existing<br>
> Debian package having the same version 0.1 (my bad, I won't do it again)<br>
><br>
> my squid-deb-proxy configuration looks like:<br>
><br>
> ...<br>
> # refresh pattern for debs and udebs<br>
> refresh_pattern deb$ 129600 100% 129600<br>
> refresh_pattern udeb$ 129600 100% 129600<br>
> refresh_pattern tar.gz$ 129600 100% 129600<br>
><br>
> # always refresh Packages and Release files<br>
> refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0<br>
> refresh_pattern \/Release(|\.gpg)$ 0 0% 0<br>
> refresh_pattern \/InRelease$ 0 0% 0<br>
> ...<br>
><br>
> as far as I understand, the Packages and Release files are always refreshed<br>
> from the master repository server, but I quite do not understand the<br>
> meaning of "129600 100% 129600" for Debian packages.<br>
><br>
> I interpret that the Debian packages stay in the cache and are not<br>
> refreshed. So my package legacy-tools_0.1_all.deb and Release file got<br>
> updated on the master repository and only the Release file got updated<br>
> through the squid-deb-proxy but the old version mismatching the Release<br>
> size of the package is still available in the cache.<br>
><br>
> does this make sense?<br>
<br>
Yes, and will remain in cache for 129600 minutes (90 days).<br>
<br>
Good example of how forcing things to cache with refresh_pattern can<br>
bite back badly.<br>
<br>
If you know the exact URL of the object, you can do a force-reload like so:<br>
squidclient -H 'Cache-Control:no-cache\n' \<br>
http://.../legacy-tools_0.1_all.deb<br>
<br>
Or, IMHO upload a new package with incremented version so any other<br>
proxies that have picked it up by now can get fixed quietly as well.<br>
<br>
Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>