nsc artifact cache-url

Download an arbitrary URL using a pull-through cache.

artifact cache-url downloads the content from an arbitrary URL and caches it as an artifact for fast access.

If the content is already present in the artifact cache for the given URL it will be used instead. The content at the URL is assumed to be immutable.

Usage

nsc artifact cache-url <target url> --out <filename> [--max_age <duration>]

Example

% nsc artifact cache-url http://namespace.so/robots.txt robots.txt
Downloaded to robots.txt

Options

--out <filename>

Filename to save the downloaded content at. Required.

--max_age <duration>

Redownload from source if the cached content is older than this duration.