Skip to content
Nuvyntra Labs
All packages

HTTP & APIs

Plugin.Maui.ApiCache

HTTP GET cache with CacheFirst and SWR

Current NuGet 1.0.5

Lightweight HTTP/API response cache for MAUI. ApiResilience retries; this package remembers GET responses so screens stay fast offline and on flaky networks.

Install

dotnet add package Plugin.Maui.ApiCache

Package ID: Plugin.Maui.ApiCache

Plugin.Maui.* restores from GitHub Packages. Add the org feed first — see Use nuvyntralabs GitHub Packages from a C# project.

Overview

Plugin.Maui.ApiCache is a lightweight HTTP GET response cache for MAUI on Android and iOS. Resilience is not caching. ApiResilience retries and queues requests. This package remembers GET responses so list and detail screens stay fast offline and on flaky networks, with CacheFirst, NetworkFirst, StaleWhileRevalidate, NetworkOnly, and CacheOnly policies. UseApiCache and AddApiCache resolve when HttpClient is also registered.

Current release

  • 1.0.5. UseApiCache / AddApiCache resolve when HttpClient is also registered (constructor ambiguity fixed).

Full upgrade map for the 3 September 2026 hardening wave: Hardened plugin releases.

Capabilities

  • GET response cache with typed deserialization.
  • CacheFirst with stale fallback on network failure.
  • Stale-while-revalidate for instant screens plus a background refresh.
  • CacheOnly for forced offline reads.
  • DI registration that coexists with a host HttpClient.

Discussion

Comment on Plugin.Maui.ApiCache. The thread lives on this component's GitHub repository (nuvyntralabs/Plugin.Maui.ApiCache). Sign in with GitHub — Giscus uses Discussions, Utterances uses Issues.

Related in HTTP & APIs