• Resolved Megunticook

    (@megunticook)


    Have an odd situation where a few product images aren’t uploading to my CDN–they’re being served by the web server instead. I have the CDN set up to handle images and most of them are served from the CDN. But for some reason W3TC does not seem to be rewriting the URL for a few of these images so it points to the CDN instead of the server. I’ve tried removing the images from the media library and re-adding them but the links still aren’t pointing to the cdn. The image files are available in the CDN, it’s just that the links in the web page code aren’t pointing there.

    Any ideas why this might be happening and how to fix it?

    Thank you.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    Thank you for reaching out and I am happy to help!
    Yes, I can see that all images are served from the CDN except the main one on the page you shared.

    When the URL didn’t change to the CDN domain, the images are of course not served from the CDN. This could mean the template is using a non-default function to display the image, skipping the?wp_get_attachment_url?filter.

    urls got to the page via some non-regular way. The plugin does the best but may not know code business logic and there are still cases when code will “win” and put original url on page.
    e.g. from javascript code when url is concatenated, or coming from ajax response when urls dont pass filter like mentioned before.

    Thanks!

    Thread Starter Megunticook

    (@megunticook)

    @vmarko thanks, just seems really odd that this one image (and a couple other product variation images) for this particular product don’t have the CDN URL. Not sure how to fix this other than going into the database manually and changing the URL which is a pretty clumsy solution. I’ve never had this issue before.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @megunticook

    Thank you for your feedback.

    Yes, I can see how it’s anoying. I cannot give you a straight forwared answer as this is something that needs to be investigated

    May be related to how theme is behaving with magnifying the product.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘some images not uploading to CDN’ is closed to new replies.