Automattic / Automattic/wp-super-cache
REST API response header is text/html instead of application/json
Open
[Plugin] Super Cache
enhancement
- Dominant language
- PHP
- Stars
- 436
- Forks
- 130
- Avg merge
- 15h 11m
- Merged PRs (30d)
- 10
Description
When I activate the plugin the response I get for REST API requests are `text/html` instead of the default `application/json`. This breaks the parse of some packages, like superagent, that expect a json mime.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue by activating the plugin and making a REST API request, then inspect the plugin's response handling to find where the Content-Type becomes text/html. Compare the result with the expected application/json header and verify the behavior with a package such as superagent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100