aws-codeartifact-proxy icon indicating copy to clipboard operation
aws-codeartifact-proxy copied to clipboard

Does this project support caching

Open yuvals41 opened this issue 2 years ago • 2 comments

Hi team,

I'm currently using aws-codeartifact-pro as a proxy for my CodeArtifact private npm registry. I wanted to understand how the caching mechanism works in this setup. Does the proxy cache package data from CodeArtifact? If so, how long are the packages cached, and is there a way to configure this cache?

Thanks for your assistance!

yuvals41 avatar Oct 30 '23 15:10 yuvals41

and if is there an option to create a token on your behalf like here https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow or even aws authorization token with this command: aws --region us-east-1 codeartifact get-authorization-token --domain <domain-name> --query authorizationToken --output text

Thanks in advance!

yuvals41 avatar Oct 30 '23 16:10 yuvals41

To answer your first comment, there is no caching being done on the proxy itself. It just fetches the packages as-is from the CodeArtifact repository.

If you'd like a cache implemented, I am welcome to contributions or a feature request to be raised (though it will be a while till I get to this).

For your 2nd comment, do you have a specific usecase you're trying to solve?

sktan avatar Oct 31 '23 07:10 sktan