https:eletricistaefaztudo.sampa.br
Dear Hosting Support Team,
I am writing to request urgent assistance with a critical issue affecting my Progressive Web App (PWA) functionality on my website, https://eletricistaefaztudo.sampa.br
.
I have implemented a PWA, including manifest.json
and sw.js
files, which are essential for its proper operation (e.g., installability, offline capabilities). These files are located at the root of my domain.
Upon inspecting the network requests using browser developer tools, I found that requests for /manifest.json
(and likely /sw.js
as well) are being served with an incorrect Content-Type
header of text/html
, instead of application/json
or application/javascript
, respectively. Furthermore, the response content for these files is an HTML page containing a JavaScript challenge (similar to a bot protection script, e.g., /aes.js
), rather than the actual JSON/JavaScript content.
This behavior is preventing the browser from parsing the manifest.json
correctly (resulting in a âSyntaxError: Unexpected token â<ââ at line 1, column 1) and from registering the Service Worker, thus breaking the core functionality of my PWA.
Given that my hosting uses Cloudflare, I believe this issue stems from the Cloudflare security/bot protection settings that are intercepting and modifying the responses for these specific PWA files.
To resolve this, I kindly request one of the following actions:
- Option A (Preferred): Configure Cloudflare Page Rules/Security Settings Please configure Cloudflare to bypass security checks and any HTML modification/injection for the following specific URLs:
https://eletricistaefaztudo.sampa.br/manifest.json
https://eletricistaefaztudo.sampa.br/sw.js
This configuration should ensure that these files are served directly with their correctContent-Type
headers (application/json
formanifest.json
andapplication/javascript
forsw.js
) and without any injected HTML challenge.
- Option B (Alternative): Temporarily Disable Cloudflare/CDN for my Domain If configuring specific bypass rules is not feasible or complex for your team, please temporarily disable Cloudflare (or any other CDN/security service that might be causing this) for my domain,
https://eletricistaefaztudo.sampa.br
, until I can fully diagnose and resolve the issue on my end, or find an alternative solution.
A functional PWA is critical for my websiteâs user experience and engagement. I appreciate your prompt attention to this matter.
Please let me know if you require any further information or access to my account.
Thank you.