[squid-users] i was wondering about caching sourceforge.net files

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Tue, 27 Mar 2012 16:00:38 +0200

if it's related to anything directly with squid i would say it refers to
the store_url_rewite of V2.7.
so the thing is related to caching and not directly to squid.

there are many download mirrors to sourceforge.net and i was wondering
about he pattern of the domains in order to make a url rewriting for it.

so it's like a "cdn" network.
is ther any other then the store_url_rewrite or squid+nginx means to
cache the files?(examples to the url structure down)

one sample is the dia tool links.

the download page is :
http://sourceforge.net/projects/portableapps/files/Dia%20Portable/DiaPortable_0.97.2.paf.exe/download

and the download links are:
http://downloads.sourceforge.net/project/portableapps/Dia%20Portable/DiaPortable_0.97.2.paf.exe?r=http%3A%2F%2Fportableapps.com%2Fapps%2Foffice%2Fdia_portable&ts=1332855745&use_mirror=garr

# the above is redirecting to the next:
http://garr.dl.sourceforge.net/project/portableapps/Dia%20Portable/DiaPortable_0.97.2.paf.exe

#this is from another mirror:
http://downloads.sourceforge.net/project/portableapps/Dia%20Portable/DiaPortable_0.97.2.paf.exe?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fportableapps%2Ffiles%2FDia%2520Portable%2FDiaPortable_0.97.2.paf.exe%2Fdownload&ts=1332856258&use_mirror=internode

#thats redirecting to:
http://internode.dl.sourceforge.net/project/portableapps/Dia%20Portable/DiaPortable_0.97.2.paf.exe

so i'm guessing it's really simple:
all the downloads have the same uri but and host except the low level
domain.

so just to replace the low level domain with something else.

means a "cdn" like thing and very simple to cache using nginx and squid.

Thanks,
Eliezer

-- 
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer <at> ngtech.co.il
Received on Tue Mar 27 2012 - 14:00:56 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 27 2012 - 12:00:04 MDT