Przejdź do głównej zawartości

Variable: VARIANCE_AXIS_PARAMS

const VARIANCE_AXIS_PARAMS: readonly [readonly ["X-Shop-Slug", "__shop"], readonly ["X-Preferred-Currency", "__currency"], readonly ["X-Language", "__language"]]

Cache variance axes as [requestHeaderName, getUrlParam]. The backend keys its L1 cache on the resolved {tenant, currency, language}; the SDK copies the same axes into the GET URL so a shared edge cache keys correctly (it keys on the URL, not on request headers). Consumed by buildTrustedGetRequest.