Opened 5 years ago
Closed 5 years ago
#5315 closed defect (bug) (fixed)
Fix MIME type and other headers for counter JSON output
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | General | Keywords: | |
Cc: |
Description
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"
Change History (1)
Note: See
TracTickets for help on using
tickets.
In 10060: