2022-10-21 13:09:21 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Configuration.cacheDirectory
|
|
|
|
---
|
|
|
|
|
|
|
|
# Configuration.cacheDirectory property
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
Defines the directory to be used by Puppeteer for caching.
|
|
|
|
|
|
|
|
Can be overridden by `PUPPETEER_CACHE_DIR`.
|
|
|
|
|
|
|
|
#### Signature:
|
2022-10-21 13:09:21 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
interface Configuration {
|
|
|
|
cacheDirectory?: string;
|
|
|
|
}
|
|
|
|
```
|
2022-10-24 07:07:05 +00:00
|
|
|
|
|
|
|
#### Default value:
|
|
|
|
|
|
|
|
`path.join(os.homedir(), '.cache', 'puppeteer')`
|