Update README.md

This commit is contained in:
Aleksandr Statciuk 2022-05-03 19:18:56 +03:00
parent a091868c78
commit bb96b1b201
1 changed files with 5 additions and 7 deletions

View File

@ -80,7 +80,7 @@ Arguments:
- `--days`: number of days for which to grab the program (default: 1)
- `--delay`: delay between requests (default: 3000)
- `--timeout`: set a timeout for each request (default: 5000)
- `--cache-max-age`: maximum time for storing each request in milliseconds (default: 0)
- `--cache-ttl`: maximum time for storing each request in milliseconds (default: 0)
- `--gzip`: compress the output (default: false)
- `--debug`: enable debug mode (default: false)
- `--curl`: display current request as CURL (default: false)
@ -102,12 +102,8 @@ module.exports = {
method: 'GET',
timeout: 5000,
cache: { // cache options (details: https://github.com/RasCarlito/axios-cache-adapter#options)
maxAge: 0,
readHeaders: false,
exclude: {
query: false
}
cache: { // cache options (details: https://axios-cache-interceptor.js.org/#/pages/per-request-configuration)
ttl: 60 * 1000 // 60s
},
/**
@ -192,6 +188,8 @@ From each function in `config.js` you can access a `context` object containing t
- `content`: The response data as a String
- `buffer`: The response data as an ArrayBuffer
- `headers`: The response headers
- `request`: The request config
- `cached`: A boolean to check whether this request was cached or not
## Channels List