Throw exception if cache hit/miss header is missing (fix #112)