Skip to content

Next.js SSR Setup Logging Multiple Functions When URL Params Passed #131

Locked Answered by travis7777
travis7777 asked this question in Help
Discussion options

You must be logged in to vote

I heard from Vercel support:

Any parameter will cause the page/route's cache to be invalidated as the same page with each parameter is currently considered as a unique page/route.
It's on the road map to provide improved functionality related to this.

I asked them if there is a way to remove the params from the url before a function is called:
This may be possible with Edge functions but would require testing to see if the cache invalidation happens before or after edge functions come into play.
You can give it a shot here:
https://vercel.com/docs/concepts/functions/edge-functions

It works locally but when tested on production it runs into an infinite redirect.

It appears this is an open …

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Pieparker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant