• Resolved Marisa

    (@marisa2023)


    How does Jetpack Boost know what images should be served from the Content Delivery Network?

    Does it just use the ones in the Media library?

    Suppose the website has one dynamically generated page, which constantly changes and the images it displays are from a custom directory on the server which is indepdent of the WordPress Media library? These images should not be moved to the Content Delivery Network.

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

    (@alinclamba)

    Hi @marisa2023,

    Great question! I’d love to clarify how Jetpack’s Image CDN (part of Site Accelerator) works in this case.

    Jetpack doesn’t rely solely on the Media Library. Instead, it rewrites image URLs in your site’s HTML output — so as long as an image is:

    • Publicly accessible,
    • Hosted on the same domain as your WordPress site,
    • And included in the page content using a standard <img> tag,

    …it can be served from the CDN — regardless of whether it’s in the Media Library or a custom directory.

    However, if your dynamically generated images are inserted via JavaScript or loaded through AJAX after the page loads, Jetpack won’t be able to rewrite and serve them via the CDN. Also, the CDN will skip unsupported file types (e.g., video, audio, animated PNGs) or images over 50MB.

    If you want to exclude certain images from being served via CDN, a developer can use the jetpack_photon_skip_image filter to opt them out programmatically. You can find more here.

    Let me know if this helps.

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @marisa2023,

    Do you have updates about that, do you still need help? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

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

The topic ‘how does Jetpack know what images to put in its Image CDN?’ is closed to new replies.