• I recently configured Cloudfront as Origin Pull and verified the changes – Shows test passed upon hitting the Test Cloudfront button. I’ve replaced the Cloudfront URL with CNAME [cdn.domain.com] and that seems to work fine too.

    The problem is when I view the source of the site, only a few files are being served from CDN, rest all are being served from the server despite of all the files being on the CDN. However for few image files, instead of the src attribute, scrset links are updated with the CDN url.

    I thought that Cloudfront would take sometime to update, but its over 48 hrs and still not all files are served from CDN. I even tried the option “Modify attachment URL” on the CDN config page, it went till 100% but didn’t do any good.

    Any idea why this is happening ?

    URL: socialmaharaj.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter techmaharaj

    (@techmaharaj)

    What I meant to say was that almost everything is present on the CDN. But the URLs ( precisely) are still pointing to the Images on the server. For example see the below code snippet, here the img src is pointing to the server and only the srcset is going to CDN.

    <a
    href=https://socialmaharaj.com/wordpress/wp-content/uploads/2016/08/oh_Bean_der05.jpg><img
    class=" wp-image-4640" src=https://socialmaharaj.com/wordpress/wp-content/uploads/2016/08/oh_Bean_der05-1024x768.jpg alt="Meat lover's love for the day" width=339 height=254 srcset="https://cdn.socialmaharaj.com/wordpress/wp-content/uploads/2016/08/oh_Bean_der05-1024x768.jpg 1024w, https://cdn.socialmaharaj.com/wordpress/wp-content/uploads/2016/08/oh_Bean_der05-300x225.jpg 300w, https://cdn.socialmaharaj.com/wordpress/wp-content/uploads/2016/08/oh_Bean_der05-768x576.jpg 768w" sizes="(max-width: 339px) 100vw, 339px"/></a>

    So I’m kindof confused, shouldn’t the or tag also be pointing to CDN ?

    I have the same issue. Files are on Cloudfront but src urls still point to images on the server.

    In my case I found the issue: I hadn’t set up Total cache to recognize one of the directories where I had images. This was fixed by updating “Custom file list”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cloudfront CDN Not serving files’ is closed to new replies.