Registry / devops / netlify-plugin-gatsby-cache

netlify-plugin-gatsby-cache

JSON →
library0.3.2jsnpmunverified

Netlify build plugin that persists the Gatsby .cache directory between builds on Netlify, drastically reducing rebuild times by avoiding redundant content processing. v0.3.2 (last release 2022). Maintenance mode – no active development, but stable for basic use. Key differentiator: minimal configuration (one TOML line) vs manual cache restore scripts. Works by saving/restoring the cache folder to Netlify's deploy cache. Only for Gatsby sites hosted on Netlify.

npm install netlify-plugin-gatsby-cache
INSTALL
IMPORT
SIG · NETLIFY-PLUGIN-GAT
N
netlify-plugin-gatsby-cache
devopsjavascriptv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
Add `[[plugins]]\n package = "netlify-plugin-gatsby-cache"` to netlify.toml
Adding to package.json dependencies
Plugin is configured via netlify.toml, not imported in code.

Configures the Netlify plugin to persist Gatsby cache between builds.

Add the following to your `netlify.toml`: [build] publish = "public" [[plugins]] package = "netlify-plugin-gatsby-cache"
Debug
Known issues
deprecatedPlugin is no longer actively maintained and may break with future Netlify build image updates.
fix
Consider migrating to Netlify's official build plugins or using Nx cloud caching.
affects: >=0.3.0
gotchaThe `publish` directory in `[build]` must be set correctly; the plugin uses it to locate the `.cache` folder.
fix
Ensure `publish = "public"` matches your Gatsby output folder.
affects: all
Errors
Common errors & fixes
Plugin netlify-plugin-gatsby-cache not found
Plugin not installed via Netlify UI or netlify.toml not properly configured.
fix
Install via Netlify UI or add `[[plugins]]\n  package = "netlify-plugin-gatsby-cache"` to netlify.toml.
Upgrade
Version history
0.3.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
netlify-plugin-gatsby-cache — npm install netlify-plugin-gatsby-cache · libregistry