Answers about caching
Questions and answers from the Croct community about caching.
Keeping Oxygen's full-page cache while personalizing one hero section, is that possible?
Homepage on Hydrogen, served from Oxygen's full-page cache with CacheLong, hit rate is excellent and TTFB is around 40ms. Now the brief says personalize the…
How can server-side personalization coexist with Oxygen's edge cache?
We just moved our fashion store to Hydrogen on Oxygen and I am planning the personalization setup. With our previous experimentation tool we had to pick…
Personalizing Sanity content without turning every GROQ query per-user and losing the CDN
Prototyped personalization by injecting user attributes into our GROQ queries. Result: Sanity CDN hit rate went from 96% to under 20% in two days. Obvious in…
Best caching strategy when only some Hydrogen routes are personalized?
Planning the rollout of Croct on our DTC storefront and trying to decide the caching strategy upfront. The marketing pages (home, collections, editorial)…
Personalizing Sanity content without blowing up GROQ/CDN caching
We run a marketplace on Sanity and lean heavily on the CDN for GROQ query performance. Nearly every content request is a cache hit today and our page latency…
How does personalization interact with Sanity's Live Content API?
We adopted the Live Content API on our media site so published edits show up near-instantly without redeploys, and it has been great. Now personalization is…
Sanity webhooks revalidate our Next pages, do personalized routes need it?
Publish events in Sanity hit a webhook that calls revalidatePath for our static pages. Works well. Now a few routes also fetch personalized slot content from…
Storyblok webhooks purge our CDN cache, where does personalized content fit?
Today an editor publishes in Storyblok -> webhook fires -> we purge the CDN cache for the affected paths -> next request rebuilds the page. Works well for the…
Our whole site sits behind a CDN, where does personalization fit?
I do platform engineering at a travel site. Our request path today is simple: Every page is the same for everyone, which is exactly why the hit ratio is so…
Can I cache Croct content API responses to cut request volume?
The marketplace I work on has hot category pages that get hammered, and I am looking at putting a cache in front of the content fetches for them, same as we…