# dio_cache_interceptor

> HTTP cache interceptor for Dart's dio client, with pluggable stores

Source: https://talira.ai/catalog/dio-cache-interceptor-gcfrpx8g
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [llfbandit](https://talira.ai/orgs/llfbandit.md)

dio_cache_interceptor caches responses for the [dio](https://talira.ai/catalog/dio-d8sdkjkv.md) HTTP client in Dart and Flutter. It follows HTTP caching directives (ETag, Last-Modified, Cache-Control, Expires) or a policy you set, and stores responses in memory or, through companion packages, in files, Drift, Hive, Isar, ObjectBox, Sembast or MMKV. The same cache is available for the http package as http_cache_client.

## Links

- GitHub: https://github.com/llfbandit/dart_http_cache

## Problems it solves

- cache API responses in my Flutter app that uses dio
- make my Dart HTTP client respect ETag and Cache-Control
- keep HTTP responses on disk so my app works offline

## Features

- respects ETag, Last-Modified, Cache-Control and Expires
- cache policies that can ignore HTTP directives
- in-memory LRU store and file, Drift, Hive, Isar, ObjectBox, Sembast and MMKV stores
- the same cache for the http package

## Trust

Overall: 0.45 out of 1.
Signals: maintenance 0.73, adoption 0.44, momentum 0.15, community 0.49, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 19 commits in the last 90 days
- latest release 3.4.0 3.8 years ago
- 156 GitHub stars
- 16 contributors
- backed by llfbandit

## Related

- Works with [dio](https://talira.ai/catalog/dio-d8sdkjkv.md)

## Alternatives

- [dio](https://talira.ai/catalog/dio-d8sdkjkv.md): HTTP client for Dart and Flutter with interceptors, FormData and cancellation
- [http2 (Dart)](https://talira.ai/catalog/http2-dart-wz40w14x.md): HTTP/2 implementation for Dart, with a pooled, multiplexing http.Client
- [retrofit.dart](https://talira.ai/catalog/retrofit-dart-pnh327e2.md): Type-safe HTTP client generator for Dart, built for dio

## Sources

[^1]: https://github.com/llfbandit/dart_http_cache/blob/master/dio_cache_interceptor/README.md (checked 29 Nov 2026)
[^2]: https://github.com/llfbandit/dart_http_cache/blob/master/dio_cache_interceptor/LICENSE (checked 29 Nov 2026)
