From 8caaee2b0875b5b190eece241c8e8fe94e29642b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 9 Feb 2022 10:15:12 +0100 Subject: [PATCH] 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 --- roles/varnish/templates/kojipkgs.vcl.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/varnish/templates/kojipkgs.vcl.j2 b/roles/varnish/templates/kojipkgs.vcl.j2 index 9bce0d88a9..8595713bb7 100644 --- a/roles/varnish/templates/kojipkgs.vcl.j2 +++ b/roles/varnish/templates/kojipkgs.vcl.j2 @@ -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