Cache configurability - expiry time, read/write controls #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #4
--cache-read
totrue
(the default) means that caches will be read and the values used, while setting it tofalse
will always proxy to an upstream without regard for cached values--cache-write
totrue
(the default) means that when a request is proxied upstream, the results will be cached (written to Artifactory) so that this or other instances configured to read from cache can avoid contacting the upstream for that request. Setting it tofalse
will not write upstream responses to the cache.--cache-write
tofalse
can be especially useful if proxying to an upstream is desired without setting an Artifactory API key (when reads to Artifactory don't require authentication), as this allows for full upstream support without supplying any authentication/secrets.--cache-read=false
does not affect that behavior (a download of a collection will be served from Artifactory if that's where it exists)--cache-write=false
will necessarily result in an upstream collection that doesn't exist in Artifactory not being uploaded to Artifactory, but streamed directly from the upstream