> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](/docs/architecture/storage/artifact-storage) 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

```bash theme={null}
nsc artifact cache-url <target url> --out <filename> [--max_age <duration>]
```

### Example

```sh theme={null}
% nsc artifact cache-url https://namespace.so/robots.txt --out robots.txt
Downloaded to robots.txt
```

## Options

<h3 id="--out-filename">
  \--out \<filename>
</h3>

Filename to save the downloaded content at. Required.

<h3 id="--max_age-duration">
  \--max\_age \<duration>
</h3>

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