refreshConfig function
Forces a refresh of the configuration from CDN This will bypass the cache and fetch fresh data
Usage:
final config = await refreshConfig();
@param options Optional CDN configuration options @returns Future
Implementation
Future<CDNConfig> refreshConfig([CDNConfigOptions? options]) async {
// Clear the cache first
await clearConfigCache();
cdnConfigInstance.clearCache();
// Fetch fresh config
return await fetchConfigFromCDN(options);
}