workbox
workbox copied to clipboard
How to send headers for precached entries ?
Library Affected: NA
Browser & Platform: NA
Issue or Feature Request Description: I have a React PWA app (created with CRA). I can't turn it into true PWA because some routes require COEP headers. To solve this I have excluded /index.html from the precache and send the COEP headers from Netlify on the correct route. It uses client-side rendering.
I want /index.html to be in preache (for offline behavior), but I want to send COEP headers conditionally from the service worker. How can I implement this?
TLDR I need to send response headers for preached responses conditionally.