preactjs / preact-www

:book: Preact documentation website.
https://preactjs.com
MIT License
358 stars 500 forks source link

chore: Fix markdown `Content-Type` header for enabling CloudFlare compression #1084

Closed rschristian closed 8 months ago

rschristian commented 8 months ago

Netlify serves markdown content w/ text/markdown which is valid since 2016, but CF still doesn't support it. Need to use text/x-markdown: https://developers.cloudflare.com/speed/optimization/content/brotli/content-compression/

Edit: Need to play around w/ it on the previews Got it. That's -5kb on the home page.