Interface: QueryOptions
Per-request options for StorefrontClient.query.
Both fields are optional. Grouping them in one object keeps the call site readable and lets future per-request options be added without changing the method signature.
Properties
cache?
optionalcache?:CacheOptions
Cache strategy for this read. On the public catalog surface it influences
how the read is sent: a public strategy (the default for a persisted read
with no signed-in identity) is eligible for the shared, edge-cacheable GET;
private / no-store keep it on a per-user POST. Has no effect on the
customer-account surface, which is always sent fresh.
signal?
optionalsignal?:AbortSignal
Abort the in-flight request. Abort the signal to cancel the underlying
fetch — the returned promise rejects with a StorefrontError. Passing a
signal opts the request out of in-flight deduplication so that aborting one
caller never cancels another that requested the same data.