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 for assets? #15

Closed
zkamvar opened this issue Jan 29, 2022 · 4 comments
Closed

MIME type mismatch for assets? #15

zkamvar opened this issue Jan 29, 2022 · 4 comments

Comments

@zkamvar
Copy link
Contributor

zkamvar commented Jan 29, 2022

The resource from “https://53ddad7faf844f4d8d6a36762e591c6a.app.rstudio.cloud/assets/styles.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)

I am not sure what's going on but RStudio cloud likes to build the lesson, but does not like serving the lesson. It's running into this error: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

And I'm assuming that this is the same issue that archive.org is having.

@zkamvar
Copy link
Contributor Author

zkamvar commented Jan 29, 2022

I will look at this next week since it is 6:37 on a Friday evening

@zkamvar
Copy link
Contributor Author

zkamvar commented Jan 29, 2022

and it's not terribly urgent.

@zkamvar
Copy link
Contributor Author

zkamvar commented Jan 31, 2022

N.B. This happens when you try to build the site using sandpaper::build_lesson(), but it does NOT happen when you serve the site using sandpaper::serve() or rmarkdown::render_site()

@zkamvar
Copy link
Contributor Author

zkamvar commented Jan 31, 2022

It turns out that this is also not a problem for archive.org. The artefact ONLY happens when trying to preview a single markdown file in R Studio Cloud via browseURL()

@zkamvar zkamvar closed this as completed Jan 31, 2022
milanmlft pushed a commit to milanmlft/varnish that referenced this issue May 29, 2024
* make search aware of instructor/learner

Fixes carpentries#135

* fix moustache logic

* fix moustache logic

* fix link

learner aio isn't in learner folder

---------

Co-authored-by: Erin Becker <ebecker@carpentries.org>
Co-authored-by: Robert Davey <robertdavey@carpentries.org>
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

1 participant