caching problems
Emanuel Haupt
ehaupt at FreeBSD.org
Fri Feb 22 20:42:08 UTC 2008
> hey guys, our proxy is caching extremely old copies of the ports index
> and portaudit databases from freebsd.org. our admins claim that they
> cache the following files i need normally:
>
> http://www.FreeBSD.org/ports/auditfile.tbz
> http://www.FreeBSD.org/ports/INDEX-6.bz2
>
> since they have no no-cache pragma directives, and our admins won't
> budge on their 'policy'. is the freebsd site breaking standards in
> this way? is it feasible to add the directives? if not my solution
> is to mirror the files elsewhere and specify this mirror - for
> portaudit i see you can specify it in /usr/local/etc/portaudit.conf,
> but i can't see where to specify an alternate url for 'portsdb -F'
> to use?
You could host the INDEX file on a mirror running a webserver on a non
standard port. Then you could add something like this
to /usr/local/etc/pkgtools.conf:
ENV['MASTER_SITE_INDEX'] = "http://your.index.mirror.tld:81/"
Although adjusting the cache policy seems more reasonable to me.
Emanuel
--
GnuPG key id: 0x90215DB9 Download: http://pgp.mit.edu:11371
Key fingerprint: 741B C70F 100B F360 0B52 E92D 5F01 7A86 9021 5DB9
More information about the freebsd-ports
mailing list