Optimization Features
WP Rocket features info and troubleshooting.
Disable Remove Unused CSS for specific pages or posts
In some cases, you may need to disable the Remove Unused CSS feature on a specific page or group of pages. You have 2 options to achieve it: Using the WP Rocket Options meta box This is the simplest option…
Disable Remove Unused CSS or Load CSS Asynchronously on mobile
If the Remove Unused CSS or Load CSS Asynchronously features are causing layout issues on the mobile version of your site, you can disable this feature for mobile devices only while keeping it for the desktop version. You'll need to…
Dynamic exclusions and inclusions
All exclusions and inclusions required for compatibility, i.e. prevent WP Rocket from breaking a site's layout or functioning, are stored in WP Rocket Cloud and distributed in specific lists for specific features. The following features use dynamic exclusions and inclusions: Remove Unused…
Enable cache for Facebook user agent
The Facebook user agent is automatically excluded from being served cache files to prevent potential incompatibilities that could occur: for example, when a post/page is shared on Facebook. If you want to serve cached pages to the Facebook bot instead…
Enable cache for RSS feed
WP Rocket doesn't cache RSS feed by default. However, if you need to, you can enable RSS caching with the following helper plugin: 📥 Download (.zip): WP Rocket | Cache RSS feed Developers: You can find the code for this plugin on…
Enable cache for WhatsApp agent
The WhatsApp user agent is automatically excluded from being served cache files to prevent potential incompatibilities that could occur: for example, when a post/page is shared on WhatsApp. If you want to serve cached pages to the WhatsApp bot instead…
Enable caching for the WP REST API
REST API requests are not cached by default, but you can enable it with the following helper plugin. 📥 Download (.zip): WP Rocket | Cache WP Rest API Developers: You can find the code for this plugin on GitHub. How…
Enabling white label for footprint, dashboard and RocketCDN
HTML comment footprint You can remove mention of WP Rocket in the HTML comment footprint from the source code of your site: Edit wp-config.php at the root of your WordPress installation and add this constant: define ('WP_ROCKET_WHITE_LABEL_FOOTPRINT', true); Then clear…
Exclude a specific number of images from lazy loading by targeting an attribute
Google PageSpeed recommends that anything resting above the fold shouldn't be lazyloaded. This can be done using our images and iframe exclusions box by targeting specific image names and classes. A potential performance issue might arise when using sliders, carousels, or…