Blazor Wasm Static Content Error

When I load a static html file, I get this error in the console Failed to load resource: net::ERR_CONTENT_DECODING_FAILED The actual network request gives a Ok (200) When i check the file in sources, i get the message Content unavailable. Resource was not cached Im trying to load it in an iframe, but the same thing happens if I load the file in the browser. When I request with postman, the request works perfectly fine.
2 Replies
Sehra
Sehra3w ago
postman is not a browser. check what headers you send that it matches the content. for example if you claim the content is gzipped but it's not
TimberStalker
TimberStalkerOP2w ago
I don’t send any specific headers myself. Its just an html file in a wwwroot subdirectory directory. The returned headers say gz so i assume its using the compression, but im not in control of it.

Did you find this page helpful?