koajs / koajs/static-cache

Path separator still not unified

Open
#74 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
291
Forks
48
PR merge metrics
No merged PRs in 30d

Description

On windows, when I use alias, have to write like this `{'\\public\\' : '\\public\\index.html'}`
and the console shows, aliasing \public\index.html as \public\

Hope can define like this `{'/public/' : '/public/index.html'}` on all platforms

Contributor guide

Open the contributing guide

Research direction

Start by tracing how alias paths are handled in the static-cache middleware, focusing on path-separator conversion on Windows. Reproduce the shown alias configuration and verify that slash-style aliases produce the same mapping and console output across platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.