Content-Type and Charset Headers Wrong: Downloads and Scripts Misbehave
Headers.
If a page downloads instead of opening, text looks garbled, or scripts and styles are ignored, the server may be sending the wrong Content-Type or charset header.
Step 1: Inspect the header

Open F12, Network, click the file and read Content-Type under Response Headers.
Step 2: Match the file type

HTML should be text/html, CSS text/css, JavaScript text/javascript, JSON application/json.
Step 3: Fix the charset

Pages should declare UTF-8, both in a <meta charset="UTF-8"> tag and ideally in the header.
Step 4: Set a default on Apache

In .htaccess add AddDefaultCharset UTF-8 and, if needed, AddType lines for unusual extensions.
Step 5: Check PHP output

PHP files that send JSON should call header('Content-Type: application/json').
Step 6: Look at proxies

A CDN or proxy may rewrite headers. Purge it.
Step 7: Retest

Hard refresh.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist