{"library":"netlify-plugin-ttl-cache","type":"library","category":null,"description":"netlify-plugin-ttl-cache is a Netlify build plugin designed to address common runtime errors, such as 'ChunkLoadError,' in single-page applications (SPAs) that utilize code splitting (e.g., `React.lazy`). Netlify's default behavior is to replace all static assets upon each new deployment, which can lead to issues if a user's browser attempts to load an old, cached JavaScript chunk that no longer exists on the server. This plugin, currently at version 1.0.2, mitigates this by allowing users to specify a build output directory and a Time-To-Live (TTL) for assets within it, effectively persisting legacy immutable assets across deployments for a defined period. This ensures that previously served assets remain available, preventing broken user experiences without manual intervention. The plugin is configured declaratively via `netlify.toml` and does not require changes to application JavaScript code.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","netlify","netlify-plugin","cache","ttl"],"install":[{"cmd":"npm install netlify-plugin-ttl-cache","imports":["[[plugins]]\npackage = \"netlify-plugin-ttl-cache\"","[plugins.inputs]\npath = \"build\"","[plugins.inputs]\nttl = 90"]},{"cmd":"yarn add netlify-plugin-ttl-cache","imports":[]},{"cmd":"pnpm add netlify-plugin-ttl-cache","imports":[]}],"homepage":null,"github":"https://github.com/andyrichardson/netlify-plugin-ttl-cache","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/netlify-plugin-ttl-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/netlify-plugin-ttl-cache/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}