Replies: 5 comments
-
Hi @fprl would you like to create a PR for that? |
Beta Was this translation helpful? Give feedback.
-
Hi @gioboa, sure. I'm trying to understand how things works |
Beta Was this translation helpful? Give feedback.
-
If you have any questions you can ping me on Qwik discord. I'm more than happy to help you |
Beta Was this translation helpful? Give feedback.
-
We moved this issue to |
Beta Was this translation helpful? Give feedback.
-
I am also looking for something like this, but not specifically the cache middleware direction but simply limiting the actual SSG site generation to the ones that did changed. So far I had been able to limit the dynamic portion of a Quick City application and merge the new pages into the existing ones provided that all referencing pages got regenerated as well. Its a bit of a work, but I can see something smart being implemented for v2 or with a generic content provider solution. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
Not a problem but a performance improvement using node/deno adapter by using ISR (Incremental Static Regeneration).
Describe the solution you'd like
It would be nice if Qwik could expose the
next
output in the middleware.Right now is of type
next: () => Promise<void>
where it could benext: MiddlewareNext<Response | EndpointOutput>
. With this, we could cache the response and take advantage of ISR.You can see an example with Astro here.
PS: It would be nice to also have a section like this in the docs, explaining how to achieve ISR with different adapters.
Thank you.
Describe alternatives you've considered
Maybe an alternative would be to expose some kind of method in the middleware request event.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions