
Hi
Hello, I created this project with the goal of quickly setting up a template using Nuxt and the “On-demand revalidation” configuration, integrated with a backend (currently only Pocketbase).
While researching, I discovered that “On-demand revalidation” is a very valid option for saving server resources in exchange for having more data in the cache, but this option requires integration with the backend you use in your project.
Workflow
-
The user visits a page
-
The server checks if that page exists in the cache
-
If it exists in the cache, Nitro returns the cached page, and Nitro checks in the background whether the backend data has changed by reviewing “the data block”; since the backend did not send any signal, Nitro returns “the data block” from the cache
-
If the page does not exist in the cache, it generates a new page, and Nitro checks if there is a “data block” in the cache; if there isn’t, it fetches the data from the backend
-
Nitro’s configuration ensures that when a fetch is performed, that data is stored in the cache; that “data block” will expire in one week unless the backend sends an event to reset it.
-
If the data changes on the backend, it sends an event to reset the cache in Nitro
You can run the script with bun, npm or pnpm
Example
npx nurev
More info
https://codeberg.org/Serroda/nurev#how-it-works
Take a look and let me know what you think
Have a good day!
Vite: The Documentary
7mon 21d ago by lemmy.ml/u/ray in vuejs@programming.dev from www.youtube.comGeneral architecture around Pinia to handle guards, interceptor and reactivity
7mon 29d ago by jlai.lu/u/lascapi in vuejs@programming.devMigrate Large Applications from Vue.js to Nuxt.js Effortlessly
1y 4mon ago by programming.dev/u/canopas_software in vuejs@programming.dev from canopas.comMigrating Web Components from Vue 2 to Vue 3 at Open Library
1y 4mon ago by lemmy.ml/u/ray in vuejs@programming.dev from blog.rayberger.orgMigrating Web Components from Vue 2 to Vue 3 at Open Library
1y 4mon ago by lemmy.ml/u/ray in vuejs@programming.dev from blog.rayberger.orgThe future of #JavaScript toolchain looks very exciting!
1y 8mon ago by mastodon.social/users/marmelab in vuejs@programming.devI was just thinking it would be cool if at conferences the team gave out little bottles of condiments to attendees - Vue Sauce
2y 1mon ago by mastodon.social/users/scrwd in vuejs@programming.devAnnouncing VitePress 1.0 | The Vue Point
2y 2mon ago by programming.dev/u/starman in vuejs@programming.dev from blog.vuejs.orgTyped Objects in v-for - Vue3 with TypeScript
2y 3mon ago by programming.dev/u/schalkneethling in vuejs@programming.dev from dev.toAnnouncing Vue 3.4 | The Vue Point
2y 5mon ago by programming.dev/u/starman in vuejs@programming.dev from blog.vuejs.orgVue 2 is Approaching End Of Life
2y 5mon ago by programming.dev/u/mac in vuejs@programming.dev from blog.vuejs.orgHelp needed: Make Vue UI reactive
2y 6mon ago by programming.dev/u/secana in vuejs@programming.dev from github.comVueform is Now Open-Source
2y 7mon ago by programming.dev/u/mac in vuejs@programming.dev from vueform.comHow do you pass props through the router-link without polluting the url?
2y 9mon ago by lemm.ee/u/pizzahoe in vuejs@programming.devVanilla Components - Came across this lib, anyone used it?
2y 11mon ago by lemmy.jcaks.net/u/zanyhog33 in vuejs@programming.dev from vanilla-components.comI've written a concept of a lemmy web app in vue
2y 11mon ago by programming.dev/u/starman in vuejs@programming.dev from programming.devWhat do you use to create mobile applications from your Vue.js projects?
2y 11mon ago by programming.dev/u/Buddhist1961 in vuejs@programming.devwhy Vue over React?
2y 11mon ago by programming.dev/u/0110101001100010 in vuejs@programming.dev




