Blazor wasm, IIS, compression not for all files

554 Views Asked by At

I have a web app created with blazor wasm standalone and published on IIS. I use custom web.config for enable compression, as described here

link

I noticed that not all files are compressed. Files under _content folder (css and js) are non compressed (there is no .br and .gz version).

Is there a way to enable compression also for this files?

Thank you

1

There are 1 best solutions below

0
andreat On

I found this:

https://github.com/dotnet/aspnetcore/issues/37836

and seems that files outside framerork folder are not compressed in Net6. There is i way to compress them? should i use IIS dynamic compression? Thank you