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.
Merge pull request #4156 from iNecas/1099221

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