const request = new Request('https://third-party-no-cors.com/', { mode: 'no-cors', }); // Assume `cache` is an open instance of the Cache class. fetch(request).then(response => cache.put(request, response));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter