Complete the code to specify the CDN provider in the Remix config.
export const config = { cdnProvider: '[1]' };The cdnProvider should be set to a valid CDN service like cloudflare to enable CDN features.
Complete the code to set the cache control header for CDN caching.
headers: { 'Cache-Control': '[1]' }Setting Cache-Control to max-age=3600 tells the CDN to cache content for 1 hour.
Fix the error in the CDN invalidation code snippet.
await cdnClient.invalidate('[1]');
To invalidate cached images, the path pattern /images/* is used to target all files in the images folder.
Fill both blanks to configure the CDN origin and enable compression.
cdnConfig = { origin: '[1]', compression: [2] };The origin should be the live app URL, and compression enabled with true to optimize delivery.
Fill all three blanks to set up CDN cache invalidation for specific paths and method.
invalidateCache({ path: '[1]', method: '[2]', recursive: [3] });Invalidation targets CSS files with path /static/css/*, uses POST method for the request, and sets recursive to true to include subfolders.