Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME type mismatch preventing CSS from loading #1147

Closed
zekefarwell opened this issue Aug 14, 2024 · 4 comments
Closed

MIME type mismatch preventing CSS from loading #1147

zekefarwell opened this issue Aug 14, 2024 · 4 comments

Comments

@zekefarwell
Copy link

zekefarwell commented Aug 14, 2024

URL

https://www.openstreetmap.org/

How to reproduce the issue?

I'm finding osm.org to be fairly unusable at the moment as the CSS is not loading. I've tried clearing the browser cache but that has not helped. In Firefox (version 129.0.1) I'm seeing this error in the dev tools console:

The resource from “https://www.openstreetmap.org/assets/screen-ltr-4b8b2b903e4c2372327208c82022baac871edd2bd02de9aa49b6a2b630bfac61.css” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff)

And a similar error in Chrome (version 127.0.6533.120):

Refused to apply style from 'https://www.openstreetmap.org/assets/screen-ltr-4b8b2b903e4c2372327208c82022baac871edd2bd02de9aa49b6a2b630bfac61.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I asked if other people were seeing the same on the OSM US Slack and the OSM World Discord. It seems that for some people the site is working normally but some others have confirmed they are seeing the same things as me. I'm also seeing the same on my phone.

Screenshot(s) or anything else?

Screenshot 2024-08-14 at 5 36 02 PM
Screenshot 2024-08-14 at 5 35 51 PM

@pnorman
Copy link
Collaborator

pnorman commented Aug 14, 2024

Based on a log provided by someone else it's a 404 error, not a MIME error. The MIME type just gets flagged as 404 responses aren't CSS or JS.

1ajnp3ibRBiI

This is probably a deployment issue, not an openstreetmap-website issue.

@zekefarwell
Copy link
Author

Apologies if this was the wrong repo to report this sort of issue. I'm never quite sure where the right place is with all the different pieces we have. I'm happy to move the report.

@tomhughes
Copy link
Member

I've purged the cache which should fix it.

@tomhughes tomhughes transferred this issue from openstreetmap/openstreetmap-website Aug 15, 2024
@zekefarwell
Copy link
Author

Thank you, Tom. Can confirm I am no longer seeing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants