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

Published Blazor app errors on fresh visit after some amount of time #32983

Open
mrlife opened this issue May 24, 2021 · 0 comments
Open

Published Blazor app errors on fresh visit after some amount of time #32983

mrlife opened this issue May 24, 2021 · 0 comments

Comments

@mrlife
Copy link

@mrlife mrlife commented May 24, 2021

Describe the bug

I have a Blazor app published to a test and production environments that exhibits an error after not visiting the app for a while.

The error states "Did not parse stylesheet at '{path to stylesheet}' because non CSS MIME types are not allowed in strict mode."

However, the CSS files on the Network tab of the developer tools can be opened without any issues.

Refreshing the page allows the app to load normally.

To Reproduce

Run a Blazor app on a Windows server with Apache.
After not visiting the app for some amount of time, an error is presented.
Using different browsers doesn't change the behavior.

Exceptions (if any)

Here is a screenshot of the console when presented with the error:
Screen Shot 2021-05-24 at 6 45 19 PM

Further technical details

  • ASP.NET Core version: 5.0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant