Yarp static files proxying does not support handling 404s
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
When using the Yarp resource to proxy over static files, the proxy doesn't handle falling back to the designated 404.html page when a route fails to resolve.
We might have to figure out how to configure a rule for it on the Aspire side or update the Yarp proxy itself to handle redirecting to `404.html` instead of returnin the status code when the `USE_STATIC_FILES` flag is enabled.
Contributor guide
Research direction
Start at the Yarp resource path used with USE_STATIC_FILES and trace how an unresolved route is handled. Determine whether Aspire configuration can select 404.html or whether the Yarp proxy must redirect; done means unresolved static-file routes reach the designated 404.html page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100