Support » Plugin: Autoptimize » css url are not rewriting when HTTP/2 + minify without combine filter is used

  • Resolved itsoft3g


    I used 4 filters as you mentioned here for HTTP/2 + minification without concatenation


    CSS urls are not rewriting that include url() and import() calls. Resulting in images and css files are not found.

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


    good catch @itsoft3g, we’ll look into these and keep you posted. good thing those are still behind filters 😉


    Plugin Author Optimizing Matters


    OK @itsoft3g, fix committed on github, would be great if you could download & test the GitHub version (which will be out as 2.3.3 soon-ish)?

    Wow, that’s quick.
    I tested and it’s working great.
    Thanks a lot!

    I hope this feature(HTTP/2 + minify without combine) is needed in UI, many people can look for it 🙂

    Plugin Author Optimizing Matters


    minify without combine will indeed be in AO 2.4 @itsoft3g 🙂

    Fantastic change log!
    Have fun!

    Now url is not changed to CDN url.
    When I try to add CDN url, under this setup CSS url(), import() it is still stays with site url(absolute url).

    • This reply was modified 1 year, 9 months ago by itsoft3g.
    • This reply was modified 1 year, 9 months ago by itsoft3g.
    Plugin Author Optimizing Matters


    checked the code & checked on my dev-machine (on localhost with CDN set to // and this actually does seem to work @itsoft3g;

    <link rel='stylesheet' id='contact-form-7-css'  href='//' type='text/css' media='all' /><link rel='stylesheet' id='twentyseventeen-fonts-css'  href='' type='text/css' media='all' />

    the only resources it does NOT work for is if the resource name indicates it has already been minified (i.e. e.g. *.min.js or *-min.css);

    <link rel='stylesheet' id='dashicons-css'  href='http://localhost/wordpress/wp-includes/css/dashicons.min.css' type='text/css' media='all' />

    Is this also what you’re seeing?

    Settings: individual css file minifications using above filters.

    Site’s css file link is changing to the CDN link as you mentioned above.
    But url(), import() links inside the css file(which is loading from CDN) is still pointing to site url not the CDN url. I mean the assets like images from the css file.

    I also confirm filename is not having “min” in it.

    Plugin Author Optimizing Matters


    OK, now I understand 🙂

    When can I expect the update on this?

    Plugin Author Optimizing Matters


    now? 🙂

    CDN’ing resources in non-aggregated CSS will be in AO 2.4, we did a number of commits in the to-become 2.4 codebase on Github the last couple of days to tackle this, feel free to check that out.

    That’s great. I will check and give it a try.
    Will be looking forward for stable release to use it in live site.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘css url are not rewriting when HTTP/2 + minify without combine filter is used’ is closed to new replies.