Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
jsonapi.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2024 at 02:01 UTC
Updated:
25 Jun 2025 at 15:56 UTC
Jump to comment: Most recent
Comments
Comment #2
mstrelan commentedFWIW it seems CloudFlare supports the current mimetype https://developers.cloudflare.com/speed/optimization/content/brotli/cont...
Comment #3
bbralaUnfortunately: JSON:API requires use of the JSON:API media type (application/vnd.api+json) for exchanging data.
So it would be off-spec to use something else. You could discuss alternative options, like go offspec yourself by changing the header with some custom code. But we cannot change how core does this.
Comment #4
mstrelan commentedI considered changing the header, and it seems to work, but concerned it may lead to issues. We can also configure nginx to compress
application/vnd.api+json, but ideally I'd like CloudFront to do it for us.Happy for this to be closed, but leaving it open for now in case anyone has any novel ideas.
Comment #5
smustgrave commentedSince there's been no follow up in 11+ months going to close out.
If still a desired feature please re-open!