I have a Blazor server app. Every byte[]
object in the app is a BLOB. It does have .css and .js files as local files under wwwroot but every png, docx, svg, and the few static html files are BLOBs.
So the first question is, do I want to turn on compression for the App Service and/or BLOB Storage? png & docx files are already compressed. The svg & html files I have are small so a win on less bandwidth, but a performance hit on decompressing. And for the SPA rendered by Blazor server, that s components being built/changed on the fly over a SignalR connection. So is compression there useful (same small sizes issue)?
And if it s a win, how do I turn it on? As I see it there are three places to enable it. For SignalR & BLOB I can t find where/how. And for the website static files, there s different answers on each search result.
- SignalR connection rendering pages
- Static .css & .js files under wwwroot local to the website
- BLOB files that are compressible (html, svg)