-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-ui-renderingIncludes: MVC Views/Pages, Razor Views/PagesIncludes: MVC Views/Pages, Razor Views/Pagesfeature-static-web-assets
Milestone
Description
Repro steps:
- Create an empty ASP.NET Core app
- Add
app.MapStaticAssets()
- Add wwwroot/test.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1>Test</h1>
</body>
</html>
Run the app and browser to /test.html
Expected result: test.html renders in the browser
Actual result: Failed to load resource: net::ERR_CONTENT_DECODING_FAILED
Workarounds:
- Swap
app.MapStaticAssets()
forapp.UseStaticFiles()
- Use a .json file instead of a .html file
space-alien, jmaguilar, Broderick890, Algo-ryth-mix, Pragmateek and 6 morejmaguilar, Broderick890, ameyer117 and alexgilevich
Metadata
Metadata
Assignees
Labels
ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-ui-renderingIncludes: MVC Views/Pages, Razor Views/PagesIncludes: MVC Views/Pages, Razor Views/Pagesfeature-static-web-assets