axios-cache-interceptor/docs/pages/_comparison-table.md
2022-01-23 19:25:42 -03:00

4.4 KiB

Axios Cache Interceptor Axios Cache Adapter Cachios
Expiration with TTL
Per-request configuration
Global and custom instance
Cache-Control header 🛑
Expires & Age header 🟡 🛑
ETag and If-None-Match header 🛑 🛑
If-Modified-Size header 🛑 🛑
Bundle Size 3.8Kb (gzip) 18.9Kb (gzip) 19.5Kb (gzip)
Typescript declaration (Custom interface) (Applied globally) (Applied globally)
Custom cache keys
Multiple storages 🔶 (Only localForage)
Built-in redis storage 🔶 🟡
Storage size limit 🔶
Node & Web compatible 🛑
Invalidade cache based on response 🛑
Update cache based on response 🟡 🟡
Predicate to test if request should be cached 🛑
Concurrent requests 🔶#231 🛑
Cache fallback on network errors
Debug / Development mode 🛑