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

支持NPM服务配置Cache-Control响应头 #2851

Open
cnlkl opened this issue Dec 12, 2024 · 0 comments
Open

支持NPM服务配置Cache-Control响应头 #2851

cnlkl opened this issue Dec 12, 2024 · 0 comments
Assignees
Labels
backlog enhancement New feature or request

Comments

@cnlkl
Copy link
Collaborator

cnlkl commented Dec 12, 2024

What would you like to be added:

支持配置NPM服务Cache-Control响应头内容

Why is this needed:

目前packageInfo接口未返回Cache-Control响应头,会导致npm install时不缓存相关制品

npm install --loglevel verbose
// 永远是cache updated
npm http fetch GET 200 http://bkrepo.example.com/npm/blueking/npm-local/@xxxx/xxxx xxms (cache updated)
@cnlkl cnlkl added enhancement New feature or request backlog labels Dec 12, 2024
@cnlkl cnlkl self-assigned this Dec 12, 2024
@cnlkl cnlkl changed the title 支持NPM服务配置缓存时间 支持NPM服务配置Cache-Control响应头 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant