Fix For Weird Characters Displaying On Your Web Page
Do you see strange characters displayed on your site like the image below?
If so, it could be related to one of these possible causes:
Optimization plugins which add GZIP, such as:
Add Expires Headers
Check and Enable GZIP Compression
Far Future Expiration
- or others
- Specific themes' features/settings or other plugins that offer a caching feature ( Themify Page Builder for example)
Note: If you use Themify's Page Builder, make sure to disable its' caching option.
If you run a GZIP-related plugin on your site, deactivate it, then clear WP Rocket’s cache and see if the problem is resolved.
If you don’t use such a plugin, the solution would be to find and remove these lines anywhere in your active plugins or the theme:
ob_start( 'ob_gzhandler' )
Generally, either one of those lines would be added in your wp-config.php file, or in the header.php, footer.php, or functions.php of your active theme.
If you cannot find either one of them, install this small helper plugin instead:
📥 Download (.zip): WP Rocket | No GZIP compression
Developers: You can find the code for this plugin on GitHub.