Autoptimize does not do page caching, WP Rocket does. For a lot of our optimization services customers we actually combine Rocket with AO, leaving JS/ CSS/ HTML (and optionally image & google font) optimization to AO and letting Rocket do page caching and some extra’s.
hope this clarifies,
frank
Hi Frank,
do you have a tutorial for the Config of Autoptimize and WP Rocket together?
Thx
Best regards
Sally
apart from the generic advice described above; no I don’t I’m afraid.
Found a cool Post here https://flashlearners.com/autoptimize-configuration-settings/ , what you think of the settings?
Thx
Sally
I would advise against “also aggregate inline JS” and the remark about “image optimization” causing extra requests is not entirely correct (it is only the case when the images are not on the Shortpixel CDN yet), but all in all not a bad guide. Do keep in mind though that settings that are optimal on site A might not be optimal on site B; testing, measuring and comparing are strongly advised π
Thanks π Will try it on Dev
@optimizingmatters which is the best combination with AO? WP-Rocket? W3 Total Cache?…
Thanks
In the “free” range; KeyCDN Cache Enabler or WP Super Cache
If “premium” then I would indeed suggest WP Rocket.
Hi there
By the way i need a little help on wp-rocket plugin:
When I want to exclude some pages from caching, it also excludes my css and js file optimization (which i need it on that page).
Is there a way to exclude page cache (i mean get fresh html code) but still optimize css and js on that page?
maybe a code to put in functions.php or other ways?
thanks
hey alialialy;
I’m assuming you’re not using Autoptimize then? π This is the Autoptimize support forum and I cannot provide support for WP Rocket I’m afraid.
frank
Well can i use both together?
Is there a way to use autoptimize just in certain pages? not the whole website?
I’ve used Autoptimize many times but i did not see any position to exclude or include certain pages! is there a solution?
For example use functions.php or other way?
Well can i use both together?
yes, on the condition that JS/ CSS opt. is off in Rocket
Is there a way to use autoptimize just in certain pages? not the whole website? Iβve used Autoptimize many times but i did not see any position to exclude or include certain pages! is there a solution? For example use functions.php or other way?
yes, with a code snippet like the one below (the condition would obviously need to be changed to reflect what you want to exclude from optimization, the example excludes everything with shop/ in the path);
add_filter('autoptimize_filter_noptimize','noptimize',10,1);
function noptimize( $flag_in ) {
if ( strpos( $_SERVER['REQUEST_URI'],'shop/' ) !== false ) {
return true;
} else {
return $flag_in;
}
}