Fixed #17552 -- Removed a hack for IE6 and earlier.

Thanks Aaron Cannon for the report.
Can you explain why it's okay to move `patch_vary_headers()`? (I know nothing about it and am just reading about it now.)

Also, remove (I think) the failing test.