Why actually is this check on `x-head-cache` needed? Only for the test?