koajs / koajs/static-cache

koa2 not found txt file

Open
#68 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.