Opened 9 years ago
Closed 9 years ago
#37250 closed defect (bug) (fixed)
`Pragma` is a request header, not a response header
Reported by: | geekysoft | Owned by: | pento |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
WordPress incorrectly sends the Pragma
request header in return to clients as a responses header. Request headers should never be included in responses to clients and will cause compatibility issues.
The attach patch removes the header.
Multiple HTTP testing and compliance tools report this as an issue. The header is defined in RFC 2616 section 14.32.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thank you for the ticket and patch, @geekysoft!
That's some classic code you've run into there - the earliest instance I could find is [1947], but it might be from earlier. There's no ticket to go with it, but I suspect the original uses were based on KB234067, IE 5 and earlier didn't recognise
Cache-Control
, but they did recognisePragma
as a response header.Anyway, that was just a fun dive through history. We haven't supported such old browsers in a long time, so I have no problem with this going in.