Wocart

@wocart/storefront v3.1.0


@wocart/storefront / astro / revalidateEndpoint

Function: revalidateEndpoint()

revalidateEndpoint(options): object

The theme's /wocart-revalidate route: POST drops the cached pages for a verified token, ALL answers 405.

Parameters

options

RevalidateEndpointOptions

Returns

object

ALL

ALL: () => Response

Returns

Response

POST

POST: (context) => Promise<Response>

Parameters

context

RevalidateEndpointContext

Returns

Promise<Response>