Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbo responses are not compressed by Cloudflare #9884

Open
lilouartz opened this issue Aug 18, 2024 · 0 comments
Open

Turbo responses are not compressed by Cloudflare #9884

lilouartz opened this issue Aug 18, 2024 · 0 comments

Comments

@lilouartz
Copy link

Reproduction

e.g. This page is hosted on Cloudflare https://pillser.com/vitamins/vitamin-b1.data

System Info

Cloudflare

Used Package Manager

npm

Expected Behavior

I would expect response to be compressed.

Actual Behavior

Response is not compressed.

The reason for this is because content-type is set to text/x-turbo, and this is not recognized as a cacheable value by Cloudflare.

https://developers.cloudflare.com/speed/optimization/content/brotli/content-compression/

Possible solution

Change content type to application/json since it is valid JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants