Hey everyone, I’m MAD! I’ve been struggling with Azure Static Web Apps compression for over a month. You read that right – A MONTH.
Microsoft’s official docs states that Brotli compression is enabled by default and yet every time I deploy and run the app I get the uncompressed files. Blazor WASM by itself is a huge monster and not being able to at least compress it was a huge pain.
I tried really everything I found on the web, many times, over and over again.
- Using decode.js and decode.min.js (ref Microsoft docs)
- Editing staticwebapp.config.json like a thousand times trying different things
- Using a compression step as part of my Github Actions CI/CD even though by default Blazor is compressed when published (I was that desperate after thousands of trial and errors)
Nothing worked.
So let me show you, dear internet stranger, what fixed my problems, as I’m sure many of you will struggle with this too, so hopefully this will save you some hair.
The issue was… my antivirus ESET NOD 32’s HTTP Scanner. Yeah, that’s right. This feature, called Protocol filtering, was behind my compression nightmares the whole time.
So the fix is easy – just whitelist your domain’s IP address:

Sadly I couldn’t find a way to make it work with a domain name, which is far less fragile than using IP. If you did, please share your sorcery with us in the comments.
Anyways, hopefully this will save you from the troubles and the sleepless nights I had to go through…
Happy coding, folks 🧑🏼💻
A whole month dealing with Azure Static Web Apps compression? I feel your pain — the docs saying Brotli is “enabled by default” while it clearly isn’t working is incredibly frustrating. And with Blazor WASM already being a massive download, having compression fail completely must have made the app feel unusable. Did you ever find a workaround that actually fixed it?
Man, dealing with Blazor WASM file sizes is already a headache, so I can’t imagine fighting with Azure’s Brotli compression for a whole month. It’s so annoying when the official docs claim it’s enabled by default but you still end up with massive uncompressed files. Did you ever find a workaround for this, or is it still broken?
Man, dealing with Blazor WASM payload sizes without compression sounds like a total nightmare. It’s so frustrating when Microsoft’s documentation says Brotli is active by default but the actual deployment still serves uncompressed files. Did you ever find a way to get Azure Static Web Apps to actually compress them, or are you still stuck?
I completely feel your pain on this—Blazor WASM payload sizes are absolutely brutal without compression. It’s incredibly frustrating when Microsoft’s docs claim Brotli is enabled by default but it just doesn’t work out of the box. Did you finally find a workaround or a specific config setting to fix it?
This is a useful example of why a platform’s documented default is not the same as an observable production behavior. When compressed assets are unexpectedly served uncompressed, it helps to separate build output, deployment artifacts, response headers, cache behavior, and content negotiation before assuming the application is at fault. A short reproducible request/response comparison would make the diagnosis especially clear: check the accepted encodings, returned content encoding, and cache headers for the same asset. That kind of troubleshooting trail can save others from spending weeks on an ambiguous compression issue.
I can totally relate to the frustration of debugging an issue for weeks only to find it’s something completely unexpected like antivirus software interfering. Your detailed write-up about the Azure Static Web Apps Brotli compression problem is super helpful. On a side note, for anyone dealing with image metadata issues in their web projects, the AI Metadata Remover tool is a great browser-local solution to strip EXIF and GPS data without uploading files anywhere. Thanks for sharing your experience!
ai metadata remover
Man, that sounds super frustrating! Glad you figured out it was the antivirus messing with you. If anyone’s in the same boat, maybe check this out for some useful tools to help with your coding tasks, might be worth a look: Ambigram Generator
This is a great reminder that the problem isn’t always where the docs point — the author spent a month on Brotli compression in Azure Static Web Apps only to find ESET NOD 32’s Protocol filtering was stripping it locally. It makes me wonder how many developers have chased this same “bug” in their deployments when it was actually client-side antivirus all along. Also curious: does whitelisting by IP really stay reliable if the app’s address ever changes?
Man, I feel your pain. Compression issues can be a real headache, and it’s wild how an antivirus setting could be the culprit. At least there’s a fix for it, huh? If anyone’s looking for a break from coding struggles, try this Random Bible Verse Generator.