SWR (Stale While Revalidate) example of cache management and LocalStorage for server responses
-
Updated
Aug 31, 2020 - JavaScript
SWR (Stale While Revalidate) example of cache management and LocalStorage for server responses
The web app informs users about all the launches by SpaceX and its rockets. It queries SpaceX's GraphQL API for the data. API responses are dynamically cached within service-worker with stale-while-revalidate approach. It's a PWA: is installable and works offline. It's developed using TDD approach and is completely typed with TypeScript.
Search GitHub profiles by username and check their details in a nicely-formatted card
skipWaiting() with StaleWhileRevalidate the right way
Stale-while-revalidate data fetching library for Svelte.
This worker for CloudFlare workers enables Stale-While-Revalidate caching in HTML files, so you can get fastest Time To First Byte and best user experience. With options by locale, device, country
Refresh strategies for the RemoteData type
🔥 Stale-While-Revalidate (SWR) strategy to fetch data in Vue 3
Basic "stale while revalidate" Service Worker
Aprendendo conceito de data fetching com stale-while-revalidate
Demo repo for a minimal service worker to implement the stale-while-revalidate caching pattern, with a user notification if the origin response is different from the cache.
React Hooks for Data Fetching
A composables library for data fetching based on Vue 3 Composition-API.
Build Your Own Link Hub With Storyblok, Astro, and Edgio.
Redux and the Storage API as a single source of truth in Chrome Extensions
In-memory cache supporting promise based workers and middleware hooks (distributed expiry and persistence provided)
Demonstração de possíveis otimizações para o service worker de um PWA (Progressive Web App).
`stale-while-revalidate` caching stratergy for vanilla web-apps
Add a description, image, and links to the stale-while-revalidate topic page so that developers can more easily learn about it.
To associate your repository with the stale-while-revalidate topic, visit your repo's landing page and select "manage topics."