{"id":15442187,"url":"https://github.com/arthurfiorette/axios-cache-interceptor","last_synced_at":"2026-03-05T01:17:59.156Z","repository":{"id":36958492,"uuid":"402055912","full_name":"arthurfiorette/axios-cache-interceptor","owner":"arthurfiorette","description":"📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!","archived":false,"fork":false,"pushed_at":"2026-03-01T19:56:44.000Z","size":15264,"stargazers_count":815,"open_issues_count":13,"forks_count":67,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-01T21:57:28.390Z","etag":null,"topics":["adapter","ajax","axios","axios-cache","axios-cache-interceptor","axios-plugin","axios-react","cache","cachecontrol","etag","http","interceptor","nodejs","request","ttl","web"],"latest_commit_sha":null,"homepage":"https://axios-cache-interceptor.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthurfiorette.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"arthurfiorette"}},"created_at":"2021-09-01T12:39:56.000Z","updated_at":"2026-02-27T16:16:47.000Z","dependencies_parsed_at":"2023-01-17T08:31:53.541Z","dependency_job_id":"9d226c08-9d9b-45c4-b3ec-21ad26686e12","html_url":"https://github.com/arthurfiorette/axios-cache-interceptor","commit_stats":{"total_commits":1227,"total_committers":37,"mean_commits":33.16216216216216,"dds":0.5297473512632437,"last_synced_commit":"215aa08234e1fda362cebe374f602ea409441659"},"previous_names":[],"tags_count":98,"template":false,"template_full_name":null,"purl":"pkg:github/arthurfiorette/axios-cache-interceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Faxios-cache-interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Faxios-cache-interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Faxios-cache-interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Faxios-cache-interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurfiorette","download_url":"https://codeload.github.com/arthurfiorette/axios-cache-interceptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Faxios-cache-interceptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30104222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:06:53.091Z","status":"ssl_error","status_checked_at":"2026-03-05T01:02:35.679Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["adapter","ajax","axios","axios-cache","axios-cache-interceptor","axios-plugin","axios-react","cache","cachecontrol","etag","http","interceptor","nodejs","request","ttl","web"],"created_at":"2024-10-01T19:25:39.067Z","updated_at":"2026-03-05T01:17:59.115Z","avatar_url":"https://github.com/arthurfiorette.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n   \u003cb\u003eUsing this package?\u003c/b\u003e Please consider \u003ca href=\"https://github.com/sponsors/arthurfiorette\" target=\"_blank\"\u003edonating\u003c/a\u003e to support my open source work ❤️\n  \u003cbr /\u003e\n  \u003csup\u003e\n   Help axios-cache-interceptor grow! Star and share this amazing repository with your friends and co-workers!\n  \u003c/sup\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\" title=\"Axios Cache Interceptor's logo\"\u003e\n  \u003ca href=\"https://axios-cache-interceptor.js.org\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg src=\"docs/src/public/rocket.svg\" width=\"180\" alt=\"Axios Cache Interceptor logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca title=\"MIT license\" target=\"_blank\" href=\"https://github.com/arthurfiorette/axios-cache-interceptor/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/arthurfiorette/axios-cache-interceptor?color=bfb434\"\u003e\u003c/a\u003e\n  \u003ca title=\"Codecov\" target=\"_blank\" href=\"https://app.codecov.io/gh/arthurfiorette/axios-cache-interceptor\"\u003e\u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/arthurfiorette/axios-cache-interceptor?token=ML0KGCU0VM\u0026color=d2a72d\"\u003e\u003c/a\u003e\n  \u003ca title=\"NPM Package\" target=\"_blank\" href=\"https://www.npmjs.com/package/axios-cache-interceptor\"\u003e\u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dw/axios-cache-interceptor?style=flat\u0026color=de8f2e\"\u003e\u003c/a\u003e\n  \u003ca title=\"Bundle size\" target=\"_blank\" href=\"https://bundlephobia.com/package/axios-cache-interceptor\"\u003e\u003cimg alt=\"Bundlephobia\" src=\"https://img.shields.io/bundlephobia/minzip/axios-cache-interceptor/latest?style=flat\u0026color=e87430\"\u003e\u003c/a\u003e\n  \u003ca title=\"Last Commit\" target=\"_blank\" href=\"https://github.com/arthurfiorette/axios-cache-interceptor/commits/main\"\u003e\u003cimg alt=\"Last commit\" src=\"https://img.shields.io/github/last-commit/arthurfiorette/axios-cache-interceptor?color=f15633\"\u003e\u003c/a\u003e\n  \u003ca title=\"Blazingly fast\" target=\"_blank\" href=\"https://twitter.com/acdlite/status/974390255393505280\"\u003e\u003cimg src=\"https://img.shields.io/badge/blazingly-fast-fa3737\"/\u003e\u003c/a\u003e\n  \n\u003c/p\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n# Axios Cache Interceptor\n\n\u003e Cache interceptor for axios made with developers and performance in mind.\n\n\u003cbr /\u003e\n\n- ⚡ Faster!\n- 📦 Handy builds!\n- 🔩 Hassle free!\n- 🛠️ Rich Features!\n- 🌐 No network waste!\n- 🔑 TypeScript!\n\nAxios Cache Interceptor is, as it name says, a interceptor for axios to handle caching. It\nwas created to help developers call axios multiple times without having to worry about\noverloading the network or coding himself a simple and buggy cache system.\n\n\u003cbr /\u003e\n\n- [Read the docs to **Learn More**.](https://axios-cache-interceptor.js.org)\n- [Ask **ChatGPT** to help you with it.](https://chatgpt.com/?model=gpt-4\u0026hints=search\u0026prompt=You+are+a+JavaScript+expert+assistant.+Read+the+entire+content+from+the+following+URL%3A%0A%0Ahttps%3A%2F%2Faxios-cache-interceptor.js.org%2Fllms-full.txt%0AYou+are+free+to+follow+any+links+in+the+document+to+gather+more+information%2C+if+necessary.%0A%0AThe+document+is+a+comprehensive+guide+to+the+%60axios-cache-interceptor%60+library%2C+which+is+used+for+caching+HTTP+requests+in+Axios.%0A%0A**Your+task+is+to%3A**%0A%0A1.+Understand+the+purpose+and+functionality+of+the+library.%0A2.+Learn+the+key+concepts%2C+configuration+options%2C+and+API+methods+described.%0A3.+Retain+information+about+advanced+features%2C+usage+examples%2C+and+edge+cases.%0A4.+Be+ready+to+answer+technical+questions+or+explain+how+to+use+the+library%2C+troubleshoot+common+issues%2C+and+compare+it+with+other+caching+approaches+in+Axios.%0A%0ADo+not+summarize+yet.+Just+read+and+prepare+to+answer+detailed+questions.)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n```ts\nimport Axios from 'axios';\nimport { setupCache } from 'axios-cache-interceptor';\n\nconst instance = Axios.create();\nconst axios = setupCache(instance);\n\nconst req1 = axios.get('https://arthur.place/');\nconst req2 = axios.get('https://arthur.place/');\n\nconst [res1, res2] = await Promise.all([req1, req2]);\n\nres1.cached; // false\nres2.cached; // true\n```\n\n\u003cbr /\u003e\n\n## License\n\nLicensed under the **MIT**. See [`LICENSE`](LICENSE) for more informations.\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Farthurfiorette%2Faxios-cache-interceptor.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Farthurfiorette%2Faxios-cache-interceptor?ref=badge_small)\n\n\u003cbr /\u003e\n\n## Star History\n\n\u003ca href=\"https://star-history.com/#arthurfiorette/axios-cache-interceptor\u0026Date\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=arthurfiorette/axios-cache-interceptor\u0026type=Date\u0026theme=dark\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=arthurfiorette/axios-cache-interceptor\u0026type=Date\" /\u003e\n    \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=arthurfiorette/axios-cache-interceptor\u0026type=Date\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## All Thanks To Our Contributors:\n\n\u003ca href=\"https://github.com/arthurfiorette/axios-cache-interceptor/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=arthurfiorette/axios-cache-interceptor\" /\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n","funding_links":["https://github.com/sponsors/arthurfiorette"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfiorette%2Faxios-cache-interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurfiorette%2Faxios-cache-interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfiorette%2Faxios-cache-interceptor/lists"}