Bad Practices with NextJS Cache #351
Closed
HarleySalas
started this conversation in
General
Replies: 1 comment
-
Hey, thanks for the post! Yes, we're aware - this pattern was wrongfully copied from the Vercel commerce Starter. I've implemented dynamic cache tags in our recent B2B Starter and will introduce the same logic here soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are you guys aware that next tags are for server-side data cache only?
When looking at the starter code, it seems to me, that there is an assumption that cache tags are only for the browser, or scoped to the user via headers.
Take the following example:
Are you aware that you are tagging all customers with the same tag?
When you
revalidateTag
with the argument ofcustomer
, you are invalidating the data for all users.Beta Was this translation helpful? Give feedback.
All reactions