I was wondering if anybody has some into RudderSta...
# support
r
I was wondering if anybody has some into RudderStack specific cookies changing on every request. I am trying to debug an AWS CloudFront cache miss issue and they seem to think it’s due to the RudderStack cookies. https://github.com/aws-amplify/amplify-hosting/issues/3192
Copy code
I took a quick peek at your website https://scribble.art and it looks like cookies like rl_group_id and rl_group_trait may be changing on every request. If so, this causes a distinct Cache Key to be generated for each combination of URL + Cookies causing a cache miss everytime.

Consider scoping your Cookies to specific paths only. It looks like all of them are always sent to the server because their scope is /. But if you limit them to only your API routes for example, or wherever you use them server side, then you won't pay the penalty for static assets.
g
How does your sdk configuration looks like at the source? Can you please share that
r
@gentle-petabyte-80785 thanks for the reply! Here is my sdk config in my next.js 12.3.4 app:
Copy code
const rudderAnalytics = await import('rudder-sdk-js');

        rudderAnalytics.load(
          process.env.NEXT_PUBLIC_RUDDERSTACK_KEY,
          process.env.NEXT_PUBLIC_RUDDERSTACK_DATA_PLANE_URL,
          {
            integrations: { All: true } // load call options
          }
        );
@gentle-petabyte-80785 is there any config that disables groups? or could/should I use local storage?
h
Hi @rough-fountain-70422, As of now there is no way to disable group related cookies and SDK's first preference is cookie. If cookie is not available then it uses local storage.