kojipkgs: repomd.xml (the small one) should never be cached

We can cache any other file in the repo, even the repository metadata.
But repomd.xml is the smallest part (glue) that needs to be always
up2date to correctly reference the actual repofiles.

Fixes: https://pagure.io/fedora-infrastructure/issue/10531
This commit is contained in:
Pavel Raiskup 2022-02-09 10:15:12 +01:00 committed by kevin
parent 01a020f1e6
commit 8caaee2b08

View file

@ -83,6 +83,9 @@ sub vcl_recv {
if (req.url ~ "^/mass-rebuild/") {
return (pipe);
}
if (req.url ~ "/repomd.xml") {
return (pipe);
}
# Rewrite toplink URLs to improve cache hit ratio
# See: https://pagure.io/fedora-infrastructure/issue/7383