• Resolved c-m

    (@c-m)


    I’ve setup W3 total cache with Amazon S3 and Cloudfront.

    All seems to be ok in that W3 TC can connect to my S3 bucket, and my files have been transferred across.

    There is a problem though in that when I view the website and inspect the images and other objects, I can see that they are still being served from my ‘host’ rather than via the CDN for which I set up a CName record and linked the domain cdn.mysite.com to my Amazon setup.

    Yes, I have Rewrite URL structure turned on in the general settings.

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

    (@vmarko)

    Hello @c-m

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share your website URL and also the screenshot of the Performance>CDN so we can check this?
    It would be great if you could share where your website is hosted. Can you please confirm that the files are uploaded to the CDN?
    Are you using Amazon Cloudfront or Amazon (Origin Pull) Or Amazon Cloudfront over S3 (Origin Push)?
    Have you checked if there are some Failed uploads in the upload queue?
    Thanks!

    Thread Starter c-m

    (@c-m)

    I am using Amazon CloudFront, but it doesn’t make a difference. I have a Cachefly account that I set up manually that didn’t work either.

    I’d rather not type the url publicly, but it is visible in the images.

    Everything uploaded fine, the upload cue is empty with no errors.

    Seems there is no way to upload images here, but here are the links to them.

    CDN
    https://bit.ly/3dK0O9U

    Config objects
    https://bit.ly/3us9dEP

    Queue
    https://bit.ly/37JU5sw

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @c-m

    Thank you for the information and thank you for providing the screenshots.
    This may be a trivial question but have you saved all settings and purged the cache in W3TC once the configuration was finished and purging the CDN also?
    THanks!

    Thread Starter c-m

    (@c-m)

    The settings have been saved and purged.

    Not sure why I would purge the CDN again given that the files were only uploaded after the setting were saved and purged. It’s not possible to upload the files via W3 Total Cache until you’ve saved and purged.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @c-m

    Yes, I can see that the files are uploaded to the CDN.
    Which settings besides CDN are you using in W3TC General settings?
    Are you using some other layer of caching like server-side caching? (I can see you are on the LiteSpeed server so maybe something is enabled on the server?)
    Thanks!

    Thread Starter c-m

    (@c-m)

    I am only using W3 and amazon. I don’t use Litespeed or and other CDN nor anything else to cache the website. I tried Ezoic’s site accelorator but disabled it. It should have properly propogated by now.

    I did get a message from Amazon this morning saying I’ve reached 20,000 requests, so something seems to be working somewhere but when I check using a private browser I can still see assets being served from my hosting rather than the CDN.

    Here are my settings with keys and APIs redacted.
    https://pastebin.com/fZ83eFkx

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @c-m

    Thank you for the information.
    Honestly, I am not sure where the issue is. The configuration in W3 Total Cache looks great and you can see the test has passed. Something is preventing the files to be served from the CDN.
    Please double-check the Settings on the AWS and make sure everything is set up correctly.
    What you can try is to remove cdn.moneysavinganswers.com from the “Replace hostname with ” list Cname and use only default, save all settings purge the cache and see if the assets are being served with

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘assets not being served from CDN’ is closed to new replies.