AnonymousCommunity member
#8The cache key problem shows up in another place too: personalization. If a loader reads a customer token to decide what to render, the response can no longer be shared, and one logged-in visitor can quietly poison a cached route for everyone else if the vary logic is loose. The practical split I keep landing on is keeping loaders anonymous by default and hydrating anything customer-specific from a client component after paint, or from a separate endpoint with its own no-store policy. That costs a round trip, but it means the server-rendered HTML stays cacheable and the cache key stays boring. Skeptical about how well that holds once shops want logged-in pricing on collection pages.
ReplyOpen comment