[wp-meta] [Making WordPress.org] #5315: Fix MIME type and other headers for counter JSON output

Making WordPress.org noreply at wordpress.org
Fri Jul 10 14:24:30 UTC 2020


#5315: Fix MIME type and other headers for counter JSON output
-------------------------+--------------------
 Reporter:  joostdevalk  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  General      |   Keywords:
-------------------------+--------------------
 The WordPress downloads counter has a json output here:

 https://wordpress.org/download/counter/?json=1

 The MIME type on that is text/html and because of that Google is throwing
 warnings for it. I'd suggest:

 * Setting the MIME type to `application/json`
 * Adding a canonical link header like this:

 {{{
 Link: <https://wordpress.org/download/counter/>; rel="canonical"
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5315>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list