Route can have searchParams—how to opt into Full Route Cache if none are provided?
Unanswered
tlmader (Patina Project) posted this in #help-forum
I am new to Next, so forgive me if I am not understanding the caching entirely.
I have a page at https://www.patinaproject.com/grant-stone where load time is important, and I would like to use the Full Route Cache when search parameters are not provided.
This page optionally allows using search params to let crawlers to load additional pages of content:
https://www.patinaproject.com/grant-stone?page=2
To my understanding, simply accessing
Is there a way to accomplish this? Or a recommended way to work around it?
I have a page at https://www.patinaproject.com/grant-stone where load time is important, and I would like to use the Full Route Cache when search parameters are not provided.
This page optionally allows using search params to let crawlers to load additional pages of content:
https://www.patinaproject.com/grant-stone?page=2
To my understanding, simply accessing
searchParams
opts the page out, even if none are provided. The behavior I want is to use Full Route Cache for the routes without the page parameter. Is there a way to accomplish this? Or a recommended way to work around it?