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
Merge pull request #6566 from mrclay/6559

fix(router): better handles invalid cache requests