npm / npme-installer

npm Enterprise installer
https://www.npmjs.com/enterprise
Other
35 stars 21 forks source link

Read Through Cache TTL might be too high, or npme does not watch cached module updates #160

Open necccc opened 7 years ago

necccc commented 7 years ago

Hi,

we're using our npme instance as a read through cache, and and the following problem came up today:

npm info postcss@6.0.1
npm http request GET https://our.npme.instance/postcss
npm http 304 https://our.npme.instance/postcss
undefined

Is it possible to set the cache TTL? Or should npme get notified if a cached module is updated at the upstream?

Our config uses https://replicate.npmjs.com as upstream url, the policy is white-list

Side note: this is really inconvenient, as this was one of the main reasons we've switched over npme from sinopia :(