You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove content-type from static website upload command
Running through this quickstart myself, I ran into issues where my Azure static website wasn't properly loading CSS content because my .css files were being served with MIME type text/html instead of text/css. Removing the explicit content-type from the az CLI command caused the tool to properly set the content type for all of my files.
It looks like this guide was specifying that to avoid situations where unrecognized filetypes were having unexpected content-types set automatically. That's definitely a valid problem, but I'd imagine your average developer going through this tutorial is going to be primarily uploading HTML/CSS/JS etc files that will be properly picked up by the content-type inference system, and not forcing `text/html` for every single file is going to be the path of least surprise.
0 commit comments