Red Hat Bugzilla – Bug 467383
Force to cache rpm files for one year
Last modified: 2009-09-17 03:02:14 EDT
Description of problem:
This discussion was long time ago but I've been reading something about squid configuration for proxy servers on wan connection. As the rpm files content will not change while having the same name (including version and release) I think it could be a good practice to have rpm files cached for long (even months), I've fount that following line can be used:
refresh_pattern \.rpm$ 10080 90% 10080 override-expire override-lastmod ignore-reload reload-into-ims
to have the packages stored for 6 months, what can be quite convenient in these cases.
Has anyone tested this configuration?, do you see any problem with it?
I see no problems with this. I even do see problem with bumping up the numbers to:
refresh_pattern \.rpm$ 10080 100% 525960 override-expire override-lastmod ignore-reload reload-into-ims
FYI: 525960 == 365 days, ie. one year.
Commited as faecc285309cdb102a791c97cfcc5e0f6d8ccbe8
Tagged package spacewalk-proxy-installer-0.3.3-1
see the override expire in the pkg..verified
Spacewalk has been released for some time.