{"id":16014751,"url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache","last_synced_at":"2025-03-15T10:30:50.553Z","repository":{"id":47003433,"uuid":"401346850","full_name":"andyrichardson/netlify-plugin-ttl-cache","owner":"andyrichardson","description":"A Netlify plugin for persisting immutable build assets across releases.","archived":false,"fork":false,"pushed_at":"2024-06-13T00:07:43.000Z","size":74,"stargazers_count":16,"open_issues_count":7,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T05:46:49.475Z","etag":null,"topics":["javascript","netlify","netlify-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyrichardson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-30T13:06:00.000Z","updated_at":"2025-01-15T13:23:35.000Z","dependencies_parsed_at":"2024-06-21T19:15:01.470Z","dependency_job_id":null,"html_url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"54127d8050d92f1335d37c7666c3161aafa82f11"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnetlify-plugin-ttl-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnetlify-plugin-ttl-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnetlify-plugin-ttl-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnetlify-plugin-ttl-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyrichardson","download_url":"https://codeload.github.com/andyrichardson/netlify-plugin-ttl-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243718756,"owners_count":20336589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","netlify","netlify-plugin"],"created_at":"2024-10-08T15:05:03.354Z","updated_at":"2025-03-15T10:30:50.081Z","avatar_url":"https://github.com/andyrichardson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netlify plugin TTL cache\n\nA Netlify plugin for persisting immutable build assets across releases.\n\n## How it works\n\nBy default, Netlify replaces all existing static assets when publishing new releases.\n\nFor sites where assets are unique across deployments, and dynamically loaded (e.g. [`React.lazy`](https://reactjs.org/docs/code-splitting.html)) this can lead to runtime errors (e.g. [chunk-load errors](https://www.google.com/search?q=chunk+load+error+netlify\u0026oq=chunk+load+error+netlify)).\n\nThis plugin prevents this problem by allowing users to include legacy assets across releases.\n\n## Usage\n\nInstall the plugin\n\n```sh\nnpm i -D netlify-plugin-ttl-cache\n```\n\nAdd the plugin to your `netlify.toml`\n\n```toml\n[[plugins]]\npackage = \"netlify-plugin-ttl-cache\"\n  [plugins.inputs]\n  path = \"build\"\n  ttl = 90\n```\n\n## Inputs\n\n### path\n\n_Build output directory._\n\n**type:** `string`\n\n**default:** `\"build\"`\n\n### ttl\n\n_Maximum age (days) of files in cache._\n\n**type:** `number`\n\n**default:** `90`\n\n### exclude\n\n_Regular expression [string pattern](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) for files to exclude._\n\n**type:** `string`\n\n**default:** `n/a`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyrichardson%2Fnetlify-plugin-ttl-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyrichardson%2Fnetlify-plugin-ttl-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyrichardson%2Fnetlify-plugin-ttl-cache/lists"}