[wp-trac] [WordPress Trac] #34832: REST API does not send nocache headers on authenticated requests

WordPress Trac noreply at wordpress.org
Fri Dec 4 23:35:56 UTC 2015


#34832: REST API does not send nocache headers on authenticated requests
---------------------------------------------+---------------------
 Reporter:  joehoyle                         |       Owner:  rmccue
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.4
Component:  REST API                         |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch commit  |     Focuses:
---------------------------------------------+---------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"35773"]:
 {{{
 #!CommitTicketReference repository="" revision="35773"
 REST API: Core typically sends nocache headers on all auth'ed responses,
 as in `wp`, `admin-ajax`, etc. Because the REST API infrastructure is
 hooked in pre-wp, we should be setting this ourselves.

 Adds unit tests.

 Props joehoyle.
 Fixes #34832.
 }}}

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


More information about the wp-trac mailing list