Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.static 允许传入对象,可用于缓存设置,该对象结构如下 #98

Closed
ImHype opened this issue Apr 7, 2017 · 0 comments

Comments

@ImHype
Copy link
Member

ImHype commented Apr 7, 2017

static: [
    {
        dir: path.join(__dirname, 'dir'),
        maxAge = 0,  // 用于 cache-control
        filter = file => file.indexOf('node_modules') === -1
    }, 
    path.join(__dirname, 'dir2')
]
@ImHype ImHype changed the title static 允许传入对象,可用于缓存设置,该对象结构如下 server.static 允许传入对象,可用于缓存设置,该对象结构如下 Apr 7, 2017
@ImHype ImHype closed this as completed Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant