DynamicIO: uncached page hat works when js is disabled #73957
Unanswered
errnesto
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the experimental dynamicIO is there a way to create an uncached page that works when js is disabled?
As I understand it I have two options:
cached:
with suspense:
The reason why I might want to avoid suspense in some cases, is that in nextjs, this means the page will not work without js. (I know some people argue that this does not matter since the content is streamed in and crawlers can see the content. But I sometimes have the requirement that the page should work for users that have js disabled, and they would see a blank page)
I think in many cases the solution to this is just to set a very short cache lifetime, maybe even 0. But I still feel like in some cases I want to return the latest data no matther what.
I like that dynamicIO forces you to make a decision about caching. I just don't like that the only way to create a truly dynamic page is to opt in to streaming. Or is there something that I don't see?
Beta Was this translation helpful? Give feedback.
All reactions