I have a REACT Js site hosted somewhere else but as soon as i have added Cloudflare in front on my site, i am getting this following error:
The script has an unsupported MIME type (‘text/html’).
registerServiceWorker.js:71 Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope (‘https://malibaara.com/’) with script (‘Malibaara.com | Le site par excellence de recherche d'emplois au Mali’): The script has an unsupported MIME type (‘text/html’).
And every time, i am deploying a new version of my site, it is showing a blank page with this error in the console:
Unexpected token ‘<’
Any idea what is happening?