• Resolved reyneli

    (@reyneli)


    Hello,

    I’ve created a CDN with CloudFront and Set “Use CDN Mapping” to ON in LiteSpeed Cache > Settings > CDN (include image and css).

    It works fine and all image and css files are served through the CDN except a background image, Litespeed doesn’t replace the url: background-image: url(background-image: url(https://mamparasfaus.es/wp-content/uploads/Mampara-metacrilato-colgante.jpg)).

    Do I need to add any attribute “HTML Attribute To Replace”?

    These are the default “HTML Attribute To Replace” in LiteSpeed:
    .src
    .data-src
    .href
    .poster
    source.srcset

    • This topic was modified 5 years, 6 months ago by reyneli.
    • This topic was modified 5 years, 6 months ago by reyneli.
    • This topic was modified 5 years, 6 months ago by reyneli.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Unfortunately currently LSCWP can only rewrite images in HTML code tag <img ...> if image is loaded by CSS or JS , LSCWP might not be able to rewrite the URL.

    Best regards,

    Thread Starter reyneli

    (@reyneli)

    Ok, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Background image CDN’ is closed to new replies.