Skip to content

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

@RuiGZ

Description

@RuiGZ

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions