[wp-trac] [WordPress Trac] #38027: Atom comments feed returns invalid timestamp in http headers when there are no comments

WordPress Trac noreply at wordpress.org
Mon Sep 12 19:19:24 UTC 2016


#38027: Atom comments feed returns invalid timestamp in http headers when there are
no comments
--------------------------+-----------------------------
 Reporter:  dllh          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Repro:

 1. Spin up a site with no comments.
 2. Curl the atom feed for comments to get headers.

 Expected: Last-Modified header will contain a valid date.

 Actual: `Last-Modified: GMT`

 Some sample data:

 {{{
 curl -I http://pleasetest.me/comments/feed/atom/
 HTTP/1.1 200 OK
 Server: nginx
 Date: Mon, 12 Sep 2016 19:10:16 GMT
 Content-Type: application/atom+xml; charset=UTF-8
 Connection: keep-alive
 Last-Modified: GMT
 ETag: "99b889a9cd748e8b4eca0eb3758d138d"
 Link: <http://pleasetest.me/wp-json/>; rel="https://api.w.org/"
 Expires: Thu, 31 Dec 2037 23:55:55 GMT
 Cache-Control: max-age=315360000
 }}}

 After I add a comment to the site, the headers look like so:

 {{{
 curl -I http://pleasetest.me/comments/feed/atom/
 HTTP/1.1 200 OK
 Server: nginx
 Date: Mon, 12 Sep 2016 19:16:37 GMT
 Content-Type: application/atom+xml; charset=UTF-8
 Connection: keep-alive
 Last-Modified: Mon, 12 Sep 2016 19:16:20 GMT
 ETag: "f256537b10a04293f105f6ac0d1cf128"
 Link: <http://pleasetest.me/wp-json/>; rel="https://api.w.org/"
 Expires: Thu, 31 Dec 2037 23:55:55 GMT
 Cache-Control: max-age=315360000
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38027>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list