https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

blue-portugal-81688

02/24/2023, 9:06 AM
Hey, We're trying to integrate Growthbook into a Nuxt.js app with anonymous users only. We currently use full page HTML cache in our CDN hosting service (Fastly), and we need to run Growthbook server side. The full page cache will not work with our current solution in which we use cookies for the
localStorage
polyfill, and to persist the random ID used as
id
in the
setAttributes
function. We would like the find a solution where the full page cache will only cache the various combinations of Growthbook variations, and not cache for every unique user. Do you have an ideas as to how we can solve this?
f

fresh-football-47124

02/24/2023, 9:54 AM
I know fastly is very flexible on how pages are cached
one option would be to run GrowthBook SDK on fastly…
(haven’t tested that)
you could also set the cache keys to include the experiment and variation
so you don’t cache per user, but per experiment+variation
👍 1
b

blue-portugal-81688

02/24/2023, 10:10 AM
Thanks for the suggestions. I'll look into it and get back to you!
28 Views