Comments (1)
@ajaydevopi SWR caching can be implemented in a number of different ways.
-
One way is client-side, using a library like swrv which I think is probably what you're interested in.
-
A second way is server-side (in the case of Vercel) is to use the
stale-while-revalidate
cache header to enable a SWR cache strategy, which guarantees a quick response to requests at the expense of potentially stale data.
And of course these two approaches can be used in conjunction with each other. However, this project at the moment uses purely the latter approach, with data being fetched on initial load and on page navigation. You can see more about how data is fetched lazily on client-side here.
from hackernews.
Related Issues (20)
- Duplicate initial request HOT 2
- Water tank cleaning
- A YouTube tutorial video to go through the code
- page error: hn.nuxt.space/item/[id] HOT 6
- Error: EMFILE: too many open files HOT 2
- Seeking Help: PostCSS Syntax Highlighting Issue in VS Code
- Nuxt project build issue HOT 1
- could not run HOT 2
- Fails to load SW HOT 2
- Fails to load SW HOT 2
- Use Nuxt Nitro HOT 1
- Move to hn.nuxt.space HOT 2
- Test notification
- fix: backend ssr requests to API
- Natural Remedies to Relieve Dry Eyes
- Wrong first page HOT 1
- Dependency Dashboard
- Feeds don't load after deploying SPA HOT 2
- Is this built with nuxt3? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackernews.