Fixes #5574 - consider 301 as correct response for the cdn path

But check for `repodata/` instead of `repodata` as that's what we want in the
first place.