unman already told you that in order to use cacher your repositories should be redirected to http://HTTPS///
and reading your dnf log we see
https://codecs.fedoraproject.org/openh264/36/x86_64/os/repodata/repomd.xml
For the other error:
Downloading successful, but checksum doesn’t match.
check the link to the topic I posted above.