[wp-trac] [WordPress Trac] #37250: `Pragma` is a request header, not a response header

WordPress Trac noreply at wordpress.org
Mon Jul 4 11:10:22 UTC 2016


#37250: `Pragma` is a request header, not a response header
------------------------------+---------------------
 Reporter:  geekysoft         |       Owner:  pento
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.6
Component:  General           |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------
Changes (by ocean90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37944"]:
 {{{
 #!CommitTicketReference repository="" revision="37944"
 General: Remove the `Pragma` header from responses.

 `Pragma` is supposed to be a request header, but we've been including it
 in responses since the beginning of time.

 This is a relic dating all the way back to b2, probably originally added
 because Internet Explorer version 5 and earlier didn't understand the
 `Cache-Control` header in responses, but they did (incorrectly) obey the
 `Pragma` header.

 Internet Explorer 6 and 7 will obey the `Pragma` response header only if
 no other cache-related response headers are present (in our case, they are
 always present), and all other browsers ignore the `Pragma` response
 header.

 Props geekysoft.
 Fixes #37250.
 Fixes #36744.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37250#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list