internal/router: add fullySpecified parameter to IdHandler

We also change internal/v4 so that the Cache-Control header is only added when the id is fully specified.
I've added a couple more tests.