Using Autoptimize with WP Rocket
WP Rocket has built-in compatibility with Autoptimize.
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.