• Resolved kikib

    (@kikib)


    I made sure to click on “clear cache” in Autoptimize settings. However, I kept seeing several different autoptimize css files in “Remove Unused CSS” list, all with different query strings.

    I followed a tutorial in removing query strings at https://kinsta.com/knowledgebase/remove-query-strings-static-resources/ when I added this code. However, it’s not working.

    How do I make sure that there’s only one autoptimize css that’s not useless…

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

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

    (@optimizingmatters)

    You’re slightly mixing up things here;
    * remove query strings -> AO does not add those to the autoptimized JS/ CSS, and upon checking your page source I don’t see those being added (except for one autoptimize_single-file, see below for more info).
    * remove unused CSS -> that is something AO cannot do; it simply combines the CSS found in the non-optimized version of the page. If you use complex themes and/ or plugins that add a lot of CSS, then AO will just combine that. If you want less CSS you’ll have to find (or create) a simpler (child-)theme and/ or remove plugins (optionally conditionally with e.g. plugin organizer)
    * having multiple autoptimize CSS-files; the default settings exclude CSS-files in wp-content/cache and wp-content/uploads to prevent cache size issues because of frequently changing CSS. These excluded files are minified by AO if not done so already (based on filename). This is the reason for the 3 “autoptimize_single_xzy.css”-files. If you want to avoid that feel free to change the exclusion list (but keep an eye on cache size).

    Hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘PageSpeed Autoptimize css query strings’ is closed to new replies.