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
I created a simple static website (index.html + styles.css) on my local host but found the CSS file was recognized as text/html instead of expected text/css. I am not sure whether I encountered the same cases as these.
To reproduce
Steps to reproduce the behavior:
Create a simple website that only contains a simple index.html with an attached styles.css.
Describe the bug
I created a simple static website (
index.html
+styles.css
) on my local host but found the CSS file was recognized astext/html
instead of expectedtext/css
. I am not sure whether I encountered the same cases as these.To reproduce
Steps to reproduce the behavior:
index.html
with an attachedstyles.css
.docker build -t nginx-backend . docker run -p 8000:80 nginx-backend
localhost:8000
in the browser.styles.css
was recognized astext/html
with a 404 HTTP status code in Developer Tools (F12) > Network:Expected behavior
CSS should be recognized as
text/css
and applied on HTML.Your environment
nginx
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: