Hey Guys I am looking to evaluate Growthbook and ...
# ask-questions
c
Hey Guys I am looking to evaluate Growthbook and cant find the answer to something I am struggling with. We use next.js with ISR so our site is essentiallly static and split into • .html • .json.html Which is served to the browsers. In front of next.js I have varnish setup to speed up significantly the responses for customers and cache all the above (and js / css/ fonts) but I wanted to know how growthbook can split the cache in varnish In our current setup - we will set a header on the request as it passes through, and this will split the cache - but how would this be achieved in GrowthBook? I have tried looking at all the docs and cant quite find an answer - only another person who was asking a similar thing https://linen.growthbook.io/t/9683395/hey-i-was-wondering-if-anyone-tried-implementing-growthbook- I Saw this but wanted to see how this might work I’m leaning in the run a separate GB SDK direction, throw a unique ID at it, and let it return some flags to query on inside Varnish. Gonna require a bit of tinkering, but might just be the way to go.
f
Hi Gareth, you can do something similar with GrowthBook with a custom header
when a user is assigned, there is a tracking callback fired
and you can add any custom code there to set headers
or anything else to make sure the cache is aware of the experiment
Or, as you say, you can run GrowthBook on Varish or on any edge
c
Hey @fresh-football-47124 thanks for this I really appreciate the assistance