• Resolved Prx

    (@parneix)


    Running WordPress 6.0.1 with W3TC 2.2.4

    Haven’t add any plugins or change anything major recently, but I noticed the CDN was not delivering media properly: image would not load, and return a 504. A bit out of the blue, at least from my perspective.

    I tried testing the CDN within W3TC dashboard, and the test failed.
    I try creating an origin, and it fails.

    I checked my access key and secret key with AWS: they are still valid and active.
    ID and domain name of distribution are still correct and enabled on AWS side, with no error being reported.

    So basically I’m not sure what factor caused the issue to arise in the first place. From there, what can I do to try and poinpoint the issue? Meanwhile, I have deactivated the CDN (only the CDN, W3TC still active and working as it should, so far I can tell).

    Many thanks for the time and attention, as always!

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

    (@vmarko)

    Hello @parneix

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please revert the plugin back to the previous version and let me know if the problem persists?
    Thanks!

    Thread Starter Prx

    (@parneix)

    Hello,

    I reverted to 2.2.3 (using the package available here), emptied the cache, but the test still fails.

    To revert, suffice to download the zip file of a previous version and install it through WordPress dashboard (without touching the installed version). There will be a prompt asking if the version being installed should replace the currently installed version. That’s how I reverted back.

    I can run more tests.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @parneix

    Thank you for the information.
    Can you please try and create a new AWS distribution with a new bucket and see if the problem persists?
    Thanks!

    Thread Starter Prx

    (@parneix)

    Heloo,

    I went on and manually created a new distribution in AWS CloudFront, using the same parametres.

    ? Same origin: that would be my website example.com
    ? Viewer protocol policy: HTTP or HTTPS

    In W3TC cache CDN dashboard, I then replaced the new Distribution domain name in the field “Replace site’s hostname with:”

    “SSL support” is set to “auto”

    This result in the same failure: the cloudfront distribution fails. Same if I try (again) to create an origin. To be on the safe side, I saved the new info and purge the cache before running theses tests.

    Thanks for your ongoing support!

    p.

    Thread Starter Prx

    (@parneix)

    Update:

    ? I deactivated some plugins, and revert back to 2.2.4.
    ? Now it can pass the distribution test
    ? However, if I enable the CDN (and purge the cache as usual), I’m still seeing slow loading time for media content, along with 504 error.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @parneix

    Thank you for your feedback.
    Can you please replace the existing wp-content/plugins/w3-total-cache/Cdn_Plugin.php file with this one you can download here and let me know if the problem persists?
    Thanks!

    Thread Starter Prx

    (@parneix)

    Hi,

    This seems to help: I ran some test, loading media-heavy entries, and the performance is much better I think. I tried using test browsers (no extension, no caching), and also using a VPN to access the site from different points. I’ll keep monitoring it.

    If I may ask, how FSD compared to CloudFront?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @parneix

    Thank you for your feedback.
    Can you please clarify the question?
    Do YOu mean the difference between FSD CDN and regular CDN?
    Thanks!

    Thread Starter Prx

    (@parneix)

    Hello,

    Yes, I mean the “Full Site Delivery” option advertised in the CDN module of W3TC. Could it be an alternative to AWS CloudFront?

    ph.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @parneix

    Thank you for your question.
    FSD module allows connecting with the Console of the CDN provider you’ve set up a Full site deliver with
    We always recommend Stackpath for this as it’s proven the best and ofers the best performance.
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘CDN (CloudFront) not working: 504 error’ is closed to new replies.