relgap cache
relgap keeps HTTP responses under $XDG_CACHE_HOME/relgap/http (config cache.dir, env RELGAP_CACHE_DIR). Each entry holds the response body and a few response headers (content type, ETag, Last-Modified, Link); request headers and tokens are never stored.
An entry is fresh for a time that depends on the age of the newest release it describes: 1 hour under 7 days, 1 day under 6 months, 10 days when older. Answers from endoflife.date, OSV, the CISA KEV catalog, EPSS, the Terraform registry, Artifact Hub, npm and PyPI stay fresh for 1 day, and a 404 for 1 hour. cache.ttl_override sets a fixed TTL per source (github, endoflife, osv, kev, epss) or host. A stale GET is revalidated with If-None-Match, and an authenticated 304 from GitHub doesn't count against the rate limit.
--offline answers from the cache only, --refresh revalidates everything, --no-cache skips it.
Usage
relgap cache <command>The global flags work with every command.
Examples
relgap cache info
relgap cache prune --older-than 720h
relgap cache clearSubcommands
| Command | Description |
|---|---|
| relgap cache clear | Delete every cache entry |
| relgap cache info | Show the cache directory, entry count, size and freshness |
| relgap cache prune | Delete entries not used for a while |