hack to prevent edge cases where connection: close messes up with cached headers