@wocart/storefront / index / STOREFRONT_RETRY_POLICIES
Variable: STOREFRONT_RETRY_POLICIES
constSTOREFRONT_RETRY_POLICIES:object
The retry policy per operation, as a contract a caller can read.
The transport enforces it by kind: every safe-read goes through the
caching/deduplicating GET path, which repeats a transport or 5xx failure,
while every never goes through the POST/PATCH path, which returns a result
and never retries (a replayed write is how a shopper ends up with two
orders). A test asserts this table covers every public operation and agrees
with that classification, so a new operation cannot ship unclassified.
Type Declaration
cart.validate
readonlycart.validate:"safe-read"
categories.list
readonlycategories.list:"safe-read"
collections.get
readonlycollections.get:"safe-read"
config.get
readonlyconfig.get:"safe-read"
geo.communes
readonlygeo.communes:"safe-read"
menus.get
readonlymenus.get:"safe-read"
orders.abandoned.convert
readonlyorders.abandoned.convert:"never"
orders.abandoned.upsert
readonlyorders.abandoned.upsert:"never"
orders.create
readonlyorders.create:"never"
orders.otp.send
readonlyorders.otp.send:"never"
orders.otp.verify
readonlyorders.otp.verify:"never"
orders.status
readonlyorders.status:"never"
orders.tracking
readonlyorders.tracking:"safe-read"
pageData.get
readonlypageData.get:"safe-read"
pages.get
readonlypages.get:"safe-read"
pages.landing
readonlypages.landing:"safe-read"
products.get
readonlyproducts.get:"safe-read"
products.list
readonlyproducts.list:"safe-read"
products.reviews.eligibility
readonlyproducts.reviews.eligibility:"never"
products.reviews.list
readonlyproducts.reviews.list:"safe-read"
products.reviews.submit
readonlyproducts.reviews.submit:"never"
products.reviews.upload
readonlyproducts.reviews.upload:"never"
products.search
readonlyproducts.search:"safe-read"
shipping.rate
readonlyshipping.rate:"safe-read"
shipping.rates
readonlyshipping.rates:"safe-read"