Can I Use Autoptimize with WP Rocket?
Yes, it is possible to use both Autoptimize and WP Rocket. 🙂
A common misconception is that the two plugins perform the same functions. This is not 100% correct. Autoptimize specifically provides HTML, CSS and JS minification. But it does not provide page caching which is the primary feature of WP Rocket. In terms of impact on your site’s loading time, page caching is far more important. Minification is a fine-tuning feature.
WP Rocket also has minification options, so you don’t have to use Autoptimize at all, but if you want to use both, we have built-in compatibility. WP Rocket detects when each of the options in Autoptimize are active and prevents you from activating the same option in WP Rocket:
When the cache of Autoptimize’s minified files is cleared, WP Rocket’s cache will also be cleared.
Note: If you use the CDN feature in WP Rocket, make sure to also enter your CDN URL in the Autoptimize CDN options so your files will still be detected and minified.