Problem/Motivation
JSON:API responses are currently sent with the application/vnd.api+json
mimetype. This is not one of the supported File types that CloudFront compresses. Furthermore, it seems that this is not a common mimetype enabled in nginx or apache config. For example this is the list of mimetypes in the DDEV nginx config.
By changing the mimetype to application/json
we would get gzip compression out of the box for a lot of people. I'm certain there is a reason why we need to use application/vnd.api+json
, so perhaps this is a simple "won't fix". Would be good to get some discussion here.