docs: clarify that sessions use cache by default (#44547)
This commit is contained in:
parent
9bf067dd5a
commit
4f2fb7b1a0
1 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,8 @@ The `session` module has the following methods:
|
||||||
|
|
||||||
* `partition` string
|
* `partition` string
|
||||||
* `options` Object (optional)
|
* `options` Object (optional)
|
||||||
* `cache` boolean - Whether to enable cache.
|
* `cache` boolean - Whether to enable cache. Default is `true` unless the
|
||||||
|
[`--disable-http-cache` switch](command-line-switches.md#--disable-http-cache) is used.
|
||||||
|
|
||||||
Returns `Session` - A session instance from `partition` string. When there is an existing
|
Returns `Session` - A session instance from `partition` string. When there is an existing
|
||||||
`Session` with the same `partition`, it will be returned; otherwise a new
|
`Session` with the same `partition`, it will be returned; otherwise a new
|
||||||
|
@ -46,7 +47,8 @@ of an existing `Session` object.
|
||||||
|
|
||||||
* `path` string
|
* `path` string
|
||||||
* `options` Object (optional)
|
* `options` Object (optional)
|
||||||
* `cache` boolean - Whether to enable cache.
|
* `cache` boolean - Whether to enable cache. Default is `true` unless the
|
||||||
|
[`--disable-http-cache` switch](command-line-switches.md#--disable-http-cache) is used.
|
||||||
|
|
||||||
Returns `Session` - A session instance from the absolute path as specified by the `path`
|
Returns `Session` - A session instance from the absolute path as specified by the `path`
|
||||||
string. When there is an existing `Session` with the same absolute path, it
|
string. When there is an existing `Session` with the same absolute path, it
|
||||||
|
|
Loading…
Add table
Reference in a new issue