fix(router): better handles invalid cache requests

If a cache request doesn't match the pattern, we no longer
continue to march on into errors.

Fixes #6559