怎么禁用缓存,服务器内存一直在涨,设置了maxAge和buffer也没用,想问一下怎么设置

Open
#25 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, typescript
Domain
backend

Research direction

No source file or test is named. Reproduce the memory growth with egg-static 2.3.1 on Node 20.10.0 and egg 3.17.5 using the shown maxAge, buffer, and maxFiles settings, then inspect the plugin's caching behavior; done means the cause is identified and disabling or limiting the cache has the documented effect.

Written by the indexing model from the issue text.

Description

egg-static 配置:
config.static = {
maxAge: 0,
buffer: false,
maxFiles: 5,
};

node版本:20.10.0
egg版本:3.17.5
egg-static版本:2.3.1

在静态资源多次访问后,内存并没有被释放,尝试禁用缓存或者减少缓存的文件数量,但是不起作用,想问问大佬该怎么处理

Dominant language
TypeScript
Stars
89
Forks
16
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.