{"_id":"netlify-plugin-ttl-cache","_rev":"3-d06e2de2100795efc599c44a294456a4","name":"netlify-plugin-ttl-cache","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"netlify-plugin-ttl-cache","version":"1.0.0","description":"A Netlify plugin for persisting immutable build assets across releases.","author":{"name":"Andy Richardson","url":"andyrichardson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andyrichardson/netlify-plugin-ttl-cache.git"},"bugs":{"url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache/issues"},"homepage":"https://github.com/andyrichardson/netlify-plugin-ttl-cache#readme","main":"index.js","sideEffects":"false","scripts":{"test":"jest"},"devDependencies":{"jest":"^27.1.0"},"gitHead":"04d1bb619c9a59cfb4a399e903d9031e9676ca05","_id":"netlify-plugin-ttl-cache@1.0.0","_nodeVersion":"15.13.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-1uqVqHmBCdLeNOPWzNb7+QYeFy9/LU1AM6Lmb+bunR/tylVBgiPS8LLmtx99Ihc6JopbWExW8yYRIex0QZLecA==","shasum":"7c20b01b8f29180a44349b833f09dc9da1094500","tarball":"https://registry.npmjs.org/netlify-plugin-ttl-cache/-/netlify-plugin-ttl-cache-1.0.0.tgz","fileCount":5,"unpackedSize":4418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLPrFCRA9TVsSAnZWagAAYvoQAJufugZTV7YBN5U7tV8i\n5Y5U+JP4x+0wYiMoKUjOBMvIz2vIP3pndAkqCIu8YBfUD3Nw697EOmUZdpBk\nPqe+Dx+RcaIAH5qH6ybY+PMYr6WMVd6g5Xapz/1YMa+tZJS14ht7Y7wlfJJz\ndRZrJ10jPAlw5jnRV/VPkw3+7DU/5ijgcqo5JZcB6RKheNXBM51delD3NTM/\naxRqOYyZ04YKhpuFQlNndXbFz1s+xUVdPAOYAiuya4dk9fZdnBNjIOKJVOLM\nlBoSWBF7LbyykRpQmlmevdViwGIXH3zr8Q0W9BzQ0Ets9lIwItLBSzm6JATs\nNiMFxXm9Tr7mw50wDKN2nRNGSCPHI9ZyjAejvHI9rlaRDnFKCpbGZ1/BnAX3\nglD9WQ4psnsqOCORoNtmdSNXogzcd7FnyysaOFzDetlGthmoShjjon5HvVvm\nAg08QwaXhtkByWZ/jWqasjZP+bmpyaQsAZ9rLvemgcAgk3gQmNJ+uARZrisE\nBkSPGKNZB5AWCuSt39WGBx1m+bZ7yhRVh2wFlWbrCVG7kF2FQypfeyiAqID0\nrYZnCYryYEO+yW5kxJ532CwUQETCjBUjautLhFmOYYtAPewf2X+hhgBIyBgH\n2qF0L8Zx4JNxfr5gpBy1VLFPq8CK+uMg/k+iuY1qFmYOPg9Ll960LhTSE3+r\nIkhU\r\n=K3Cw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQfAtOqUswCo6BBGmlRAxvkdpG8sJF0GDPIUhZEcCZWwIgEIMWQ4s6lO5GBBDoYD6e+/V6MBadVFmS84B9/4m/piY="}]},"_npmUser":{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"},"directories":{},"maintainers":[{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/netlify-plugin-ttl-cache_1.0.0_1630337733550_0.6933208638001176"},"_hasShrinkwrap":false},"1.0.1":{"name":"netlify-plugin-ttl-cache","version":"1.0.1","description":"A Netlify plugin for persisting immutable build assets across releases.","keywords":["netlify","netlify-plugin","cache","ttl"],"author":{"name":"Andy Richardson","url":"andyrichardson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andyrichardson/netlify-plugin-ttl-cache.git"},"bugs":{"url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache/issues"},"homepage":"https://github.com/andyrichardson/netlify-plugin-ttl-cache#readme","main":"src/index.js","sideEffects":"false","scripts":{"test":"jest"},"devDependencies":{"jest":"^27.1.0"},"gitHead":"73dbe81e261c4bff244f48529f43cb268ee5618d","_id":"netlify-plugin-ttl-cache@1.0.1","_nodeVersion":"15.13.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-AQy1WaEZYj4QceKttoHXp4AlgRhJlOcO6TPW4FVuFw3rkYW77d94FWq82+yIqqx0u5PVJx/q+34PyBC91NgC5Q==","shasum":"559d6a3a44a6469927409ba1385b44e6cdec6cab","tarball":"https://registry.npmjs.org/netlify-plugin-ttl-cache/-/netlify-plugin-ttl-cache-1.0.1.tgz","fileCount":5,"unpackedSize":4574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLQ0FCRA9TVsSAnZWagAASDAP/jMh/7G61DS1Udq22red\nwa6I+FLaEnVzEJsqOhFyLH9f580BN9Yh/LGl+0PviCK6hrGGun75Y6MPO7hP\n4oRZRzLLhm+9OF0CzeVCfXU5KK2CHMczTSgerfLbmXYOaDBQ4Pv5Ni95lMUi\nIuu7ZBrEnAsiiBD68/C7pmkduDmC3THag9Hebf83ho2YFHeWl5nBo/1wqpZy\nL0E+dxOvAKymbR0P3fsoG+9cH9k67U9Ci/zprxy6GkU8e7WpLq6/E1YatdL+\nZHXfLKjfsS4e03N9OEEE3FEk1Z7xqP68AS6b1H4sWvaevU/Or1jR/fXb4SWb\n9bF9qRZfl3KMFxh6yK2Hx6Rxy0fCuAMUrFREtv2RBLe8n7/zu8VGHxNdgwen\nk6mtuMy6G0gWpN7TDvyFp2UzYxwGoWR0y4kx9NCEUcTUkLvBC8AgjztgOi4O\ngJ3Y6VZcV5hRlpU9U+b+vWmR05C46aA0NgwtodPPPxOdDiNimVJ6eGiwadqU\n57CAOJeyuQO2Ag0CbErSloN/2v8jbZTTMlS3tN2a+pckijVxz9AAlSeMUkOt\nhs73lLT9S48MOTVupjaAaITIl+mjP83rrF/DI10Y7aSNFPdS59uLx/o0CH0h\nPAXsyPCUi9uvmqrKga2mYuFfG60nWybDl3V2GSYY2E7kRGj7DUK3bocIiDFn\nI1RW\r\n=IwZQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfCXWZx3zYHb6AwJrP8ppgJctWmlVQf2R/4zTdmFzT0wIhAJoovE2bXkUlnDqBuvxBdMpz/fXFOjEvs5dODDX+VkG+"}]},"_npmUser":{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"},"directories":{},"maintainers":[{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/netlify-plugin-ttl-cache_1.0.1_1630342405306_0.024705224498007716"},"_hasShrinkwrap":false},"1.0.2":{"name":"netlify-plugin-ttl-cache","version":"1.0.2","description":"A Netlify plugin for persisting immutable build assets across releases.","keywords":["netlify","netlify-plugin","cache","ttl"],"author":{"name":"Andy Richardson","url":"andyrichardson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andyrichardson/netlify-plugin-ttl-cache.git"},"bugs":{"url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache/issues"},"homepage":"https://github.com/andyrichardson/netlify-plugin-ttl-cache#readme","main":"src/index.js","sideEffects":"false","scripts":{"test":"jest"},"devDependencies":{"jest":"^27.1.0"},"gitHead":"54127d8050d92f1335d37c7666c3161aafa82f11","_id":"netlify-plugin-ttl-cache@1.0.2","_nodeVersion":"15.13.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-s1n7VCCX8OzMzRvG30JgVKKnrPSoV71+7aBCw+jHK4EWDfIbEvKNNPJ7WJ8zRuCQzcW70aG+Ltyxuuhz3DGCaQ==","shasum":"f83878ce71a62d693134f0299a69c63b01f54789","tarball":"https://registry.npmjs.org/netlify-plugin-ttl-cache/-/netlify-plugin-ttl-cache-1.0.2.tgz","fileCount":5,"unpackedSize":4634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLRMtCRA9TVsSAnZWagAAh50P/3oybnwHak7jz7NH8srL\nUhZPfEQ1pC52FaOmifZzDl02wnN/0zCXiXzceR10oc1wJsUvfNwQ3QMVRFqg\nlKrI//hKQiRs9w0FfJZ1/aPl3Maf3fJyqiXIO0qzBxhFq9wh5pcp0V4bvjrO\n3M6uRjfXxkPyQc1wkcLtVtkcekQlCF/Z/yushGZ2t/xYtOEDc7s5pxIQlEc7\nrCqqUG91WrPOKwXsPWrToQKKJy+cnlw2i/IPsnV6GVmBIY+ItWLJmlnWXoEA\npx6SaJS4Qh1vS0+AkOrHoNcPJfW5PvkaA0yDkVg33YglAXlhdAWHuXcCxADH\nxvGaXFTBGqNslt2/I3RYlmrQDpRfqzeQqDvYUX0yDJlq3MZuyhGJSX7rN8JN\nR5Vq7OIZRjvdllmxs/L/IunSDZPWIBTGXgva7AzJDaiXX8X+38VwE/ylfvHu\nqV7kUVy6D3rq82uf61xxBRbSQJ/JI6gWZK9MabFeZozLfn7ia2rU6CLIIr9y\no+iBqrBXLkDs76Z4ger8ag2iWQdle5N7r9y3uK4SrWk/s7L0C8hCITNntDpe\nhTsi8HODK/v9o4Z8b1cCcdr5+WwTNK/sPiRIxpllFJp3kHUDEgoL6Ll3mH0L\nwhr9QZfS6UK7kQ27O+ZjyNftOl0c7HgvsRbCjUVw8l0wA5dP7I841SbBaqfI\npaTC\r\n=kW2M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdcoAsx3WjYHfplH1njvyNBfhITMAFcj6TEx6mnRnfGAIgfEETSrifd3zPHnngbWA5ALRl+SWdMeXxn4ZmwAz1IlQ="}]},"_npmUser":{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"},"directories":{},"maintainers":[{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/netlify-plugin-ttl-cache_1.0.2_1630343981255_0.2495407201158062"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-30T15:35:33.550Z","1.0.0":"2021-08-30T15:35:33.727Z","modified":"2022-05-10T13:19:14.417Z","1.0.1":"2021-08-30T16:53:25.442Z","1.0.2":"2021-08-30T17:19:41.406Z"},"maintainers":[{"name":"andyrichardson","email":"andy.john.richardson@gmail.com"}],"description":"A Netlify plugin for persisting immutable build assets across releases.","homepage":"https://github.com/andyrichardson/netlify-plugin-ttl-cache#readme","repository":{"type":"git","url":"git+https://github.com/andyrichardson/netlify-plugin-ttl-cache.git"},"author":{"name":"Andy Richardson","url":"andyrichardson"},"bugs":{"url":"https://github.com/andyrichardson/netlify-plugin-ttl-cache/issues"},"license":"MIT","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&oq=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","readmeFilename":"README.md","keywords":["netlify","netlify-plugin","cache","ttl"]}