• Resolved rudolfl

    (@rudolfl)


    Hi,

    Need an advice here.

    I have following issue:
    Site loads CSS from file that was processed by Autoptimize.
    CSS contains some background images.
    Autoptimize replaces URLs with one from CDN specified, but… I do not want this.

    The reason is that I use different CDN for the images. I use Optimole service that optimizes images on the fly and serves them from own CDN, which is different from CDN I use for fonts and other static resources.

    How can I get around this? Is there a way to exclude certain file types or images from being optimized? I can only see exclusions on the script level.

    Thanks,
    Rudolf

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

    (@optimizingmatters)

    No, exclusions don’t work on the CDN level I’m afraid, but you could use the autoptimize_filter_base_replace_cdn filter to undo CNN’ing for images OR you could disable CDN in AO and then use autoptimize_html_after_minify to only CDN the AO’ed CSS/ JS files in the HTML?

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Processing images in CSS files’ is closed to new replies.