RepositoryTypeScriptBRBrazil
arthurfiorette

arthurfiorette/axios-cache-interceptor

📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!

821sao
67fork
2issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: axios-cache

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: cachecontrol

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: axios-cache-interceptor

#1 Repository của tuần

🚀 Cache HTTP thông minh cho axios mà không cần phứ tạp

Giảm tải mạng, tăng tốc ứng dụng với cache interceptor nhẹ nhưng mạnh.

Axios Cache Interceptor là một interceptor nhẹ cho axios, giúp quản lý cache HTTP một cách tự động và hiệu quả. Dự án được thiết kế với mục tiêu hỗ trợ các nhà phát triển gọi axios nhiều lần mà không lo quá tải mạng hoặc phải cài đặt hệ thống cache phứ tạp.

✨ Điểm nổi bật

  • ETag hỗ trợ: Tự động xử lý ETag để cập nhật cache khi nội dung thay đổi.
  • Cache-Control tuân thủ chuẩn: Tuân thủ tiêu chuẩn Cache-Control của HTTP.
  • TTL tùy chỉnh: Cấu hình thời gian sống của cache linh hoạt.
  • HTTP headers chính xác: Xử lý đúng các header liên quan đến cache như Expires, Last-Modified.
  • TypeScript toàn diện: Cung cấp kiểu dữ liệu rõ ràng, an toàn cho dự án.
  • Kích thước nhỏ gọn: Bundle nhẹ, tối ưu cho mọi môi trường.
  • Cài đặt nhanh chóng: Chỉ cần setupCache(instance) là có thể bắt đầu sử dụng.

💡 Vì sao đáng chú ý

Khác với cách tiếp cận cache thủ công dễ gây lỗi, Axios Cache Interceptor tích hợp sẵn logic cache dựa trên chuẩn HTTP, giúp giảm thiểu công sức và rủi ro. Phù hợp với các ứng dụng web hoặc Node.js cần tối ưu hiệu năng mà không muốn xây dựng hệ thống cache phức tạp.


#axios #cache #interceptor #typescript #http #nodejs #webdev #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

380.2k
Sep 15, 2026
RepositoryTypeScript
elysiajs/elysia

Ergonomic Framework for Humans

19.4k
Nov 25, 2026
RepositoryTypeScript
alovajs/alova

A fullstack request strategy library. It requests as scenarios, not single calls, across web and server frameworks

4.0k
Nov 28, 2026
RepositoryTypeScript
hatedMe/wechat-request

:rocket::zap:基于Promise实现微信小程序http请求,轻便,小巧,api友好,功能丰富

184
Oct 28, 2026
RepositoryGo
gofiber/fiber

⚡️ Express inspired web framework written in Go

40.4k
Dec 1, 2026
RepositoryPython
httpie/cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.

38.8k
Dec 17, 2024
RepositoryJavaScript
nuxt-community/axios-module

Secure and easy axios integration for Nuxt 2

1.2k
Oct 13, 2026
RepositoryGo
monaco-io/request

go request, go http client

295
Nov 24, 2025