Skip to content

Instantly share code, notes, and snippets.

@ganobrega
Last active January 19, 2023 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganobrega/d103e3fd184f2ef941a84ded81468cc1 to your computer and use it in GitHub Desktop.
Save ganobrega/d103e3fd184f2ef941a84ded81468cc1 to your computer and use it in GitHub Desktop.
VTEX - Utils
1. `/checkout/cart/add/?sku=0000&qty=1&seller=1&sc=1&redirect=true`
If you want to vary by the segment of the client (language, currency, promotions, and anything else inside the vtex_segment cookie), create a route that matches with /_v/segment/*
If you want to use all cookies, including the vtex_session, and therefore not cache anything in the CDN (as CDNs shouldn't cache sensitive/personal data), create a route that matches with /_v/private/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment