Overview
The CDN section encapsulates data that is hosted on the Recharge CDN. This data is occasionally updated but is fairly static and as such all requests to CDN data are cached by the Recharge JavaScript SDK. The caller must call the resetCDNCache function to clear it if they want to fetch updated data within the same customer session.
resetCDNCache v1.0.0 Types
Clears the CDN cache forcing new data to be fetched.
- ESM
- UMD
import { resetCDNCache } from '@rechargeapps/storefront-client';
resetCDNCache();
recharge.cdn.resetCDNCache();
📄️ Subscription Widget
The Subscription Widget related methods which return information from the CDN related to your product catalog and the subscription widget.
📄️ Products
The product methods for fetching data related to your product catalog.
📄️ Bundles
The Bundle methods available via CDN which provide access to bundle related functionality.