koa2 not found txt file
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 291
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
file path
views/.xxx/aaa/xxx.txt
app.use(staticCache(path.join(__dirname, '/views'), {
maxAge: 365 * 24 * 60 * 60,
gzip:true,
}))
i request localhost/.xxx/aaa/xxx.txt but not found.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the request for views/.xxx/aaa/xxx.txt using the shown staticCache configuration and inspect how the middleware handles that path. Done means the requested text file is served at localhost/.xxx/aaa/xxx.txt, or the issue is clarified with the expected behavior if that path is intentionally unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100