Support » Plugin: Autoptimize » AO not combining scripts and stylesheets. www in cache file path?

  • Resolved tothdigital

    (@tothdigital)


    AO doesn’t seem to be combining scripts and stylesheets. A gtmetrix test shows 14 external scripts and 16 external stylesheets even though I have selected the option to aggregate them. I have also removed wp-content/cache/ from the excluded CSS.

    I see that my AO cache folder is /www/wp-content/cache/autoptimize/. Is that right? Should the www be there?

    Another plugin’s script was throwing a 404 because of an incorrect file path of domain.com/www/wp-content/plugins/ so my hosting support added a rewrite in the NGINX server config to correct this.

    Could that rewrite be messing with AO’s ability to combine scripts and stylesheets?

    Any other ideas why I am unable to combine scripts and styles?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO seems to be working OK; there is one (smallish) CSS-file and one rather big JS-file.

    The reason for the smaller CSS-file is because AO by default excludes wp-content/cache and wp-content/uploads from CSS optimization, you can try removing those to allow e.g. the elementor CSS to be aggregated instead of just minified.

    hope this helps,
    frank

    Ok, so is gtmetrix mistaken in its count of http requests?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I didn’t count resources, I checked to see if AO was working which it is 🙂

    Not sure what it is; but it seems as though the jet-elements/ cherry-handler plugin has CSS and JS that is excluded (by you or by the plugin itself) from being optimized?

    Lastly; external JS/ CSS (you have e.g. Facebook, Google Analytics, Google Fonts, …) cannot be aggregated by AO.

    hope this clarifies,
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.