> So how can the assert equal be the same as the original cache headers?

It isn’t: it’s just checking that it’s got the same object in the response body, not that the headers are the same. The real thing it’s testing here is that the first block (after 6½ minutes) doesn’t re-fetch the response, but the second block (after 7½ minutes) does.