cache: Small style fixup

Needed to make this more readable because I had to read it,
and was failing.
Don't force tarballs to same proto as registry

Except if they are actually hosted on the registry as an attachment.

This is a requirement to make detached registry tarballs work.