Static file responses with no compression or content-encoding header

Hi,

Some of my JS assets are being returned with compression. There is no content-encoding: br header and the response sizes are the file size ( approx 3mb). I did a simple test to see if the file would be smaller when zipped up and it’s about 30% of the size - it’s a valid candidate for compression.

Request includes this header:

accept-encoding: gzip, deflate, br, zstd

There is no proxy and files are being requested directly from Netlify.

This is my netlify.toml file:

[build]
command = "npm run build"

# Disable Netlify’s default trailing slash redirects [context.production.environment]
TRAILING_SLASH = "ignore"

[[redirects]]
from = "/sitemap.xml"
to = "/sitemap.xml"
status = 200

There is no _headers file in my public directory.

This “was” working nicely but for whatever reason it has stopped. Is this something I can configure or somehow turn back on?

Many thanks in advance

JT

Hi JT,

Thanks so much for reporting this issue. I’ve escalated this to our devs to investigate further, we’ll keep you updated as we have more information to share.

1 Like

Same here, following.

This is now working again. Did you check recently?

hey @jt-helsinki , thanks for following up on this and apologies for the hassle. We’ve shipped a fix so that you should see these assets properly compressed moving forward.

Indeed it’s fixed! Thank you!

1 Like