Astro v4.8.5
Node v20.11.0
System macOS (arm64)
Package Manager npm
Output server
Adapter netlify
Integrations astro-robots-txt
@astrojs/alpinejs
astro-compress
Describe the Bug
Netlify normally compresses pages with Brotli ("Content-Encoding : br"). If middleware (middleware.ts) is used, e.g. to set security headers, compression no longer works.
Example for middleware.ts:
Astro Info
Describe the Bug
Netlify normally compresses pages with Brotli ("Content-Encoding : br"). If middleware (middleware.ts) is used, e.g. to set security headers, compression no longer works. Example for middleware.ts:
What's the expected result?
Netlify continues to compress the pages
Link to Minimal Reproducible Example
This problem happen specifically on netlify so I cannot reproduce on stackblitz or others
Participation