Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
update README based on defaults for cachePublic
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencweiss authored and axe312ger committed Feb 5, 2020
1 parent adc78bc commit 9e78b7a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ It automatically restores your cache and caches new files within the Netlify cac
These folders are cached by default:

* `.cache` directory
* `public` directory


## ⚙️ Configuration

### `cachePublic` - default: `false`

Caching the public directory on long term can result in a huge directory size which can break your netlify build. Enable this with caution.
The Public directory used to be cached by default.

It was disabled by default as over time, caching the Public directory can result in a huge directory size which can break your Netlify build.

Enable this option with caution.

```js
plugins: [
Expand All @@ -57,7 +59,7 @@ plugins: [

### `extraDirsToCache` - default: `[]`

If you need additionals directories to be cached, you can use the option `extraDirsToCache` to include one or multiple directories to Netlify cache:
If you need additional directories to be cached, you can use the option `extraDirsToCache` to include one or multiple directories in the Netlify cache:

```js
plugins: [
Expand Down

0 comments on commit 9e78b7a

Please sign in to comment.