[wp-trac] [WordPress Trac] #40444: REST API responses are sent with an empty Last-Modified header.

WordPress Trac noreply at wordpress.org
Fri May 19 20:33:23 UTC 2017


#40444: REST API responses are sent with an empty Last-Modified header.
-------------------------------------------------+-------------------------
 Reporter:  zinigor                              |       Owner:  jnylen0
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  4.8
Component:  REST API                             |     Version:  4.4
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by jnylen0):

 Note, [40805] is the same as [attachment:40444.3.diff] with the exception
 that `header_remove` is called directly without error suppression.  This
 is because `nocache_headers`
 [https://core.trac.wordpress.org/browser/tags/4.7.5/src/wp-
 includes/functions.php?marks=1144,1157#L1126 suppresses errors when
 calling header-related functions], but the pre-existing REST API code
 [https://core.trac.wordpress.org/browser/tags/4.7.5/src/wp-includes/rest-
 api/class-wp-rest-server.php?marks=1246#L1228 does not].

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


More information about the wp-trac mailing list