• Resolved Tecca

    (@tecca)


    Hey there. I’ve been using W3 Total Cache for years but have recently (since a few months ago) not been able to upload directly to S3 when using the “Upload” buttons on the CDN settings page.

    When I test the configuration, it passes. The test passes with both Amazon CloudFront Over S3 (what I always use), and with S3 Compatible, but the manual button and cron-scheduled uploading doesn’t. From what I see in the browser console, the status code is showing ?? 403 Forbidden.

    I’m thinking it might be a CORS policy issue, but I have never changed anything with my server (Nginx), website settings, or AWS. Images uploaded in the MEDIA section or in posts seems to upload to S3/Cloudfront just fine. As for the “Unsuccessful transfer queue” — it doesn’t automatically upload, but I can manually send the files to the CDN just fine.

    It’s been several months but I just ignored it at the time because I didn’t need to upload files due to not adding more plugins. But now that I’ve added more plugins, things are starting to break as W3 Total Cache tries to serve files where they don’t exist, since they don’t get uploaded.

    Any guidance as to what the problem might be would be helpful! Thank you.

    • This topic was modified 6 months ago by Tecca.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tecca

    Thank you for reaching out and I am happy to help!
    Can you please just confirm if you are using CDN Type: Push for Amazon Cloudfront S3 Compatible?
    And to confirm, you are able to manually upload the files to the CDN so they can be served from the CDN?
    Can you please sahre the screenshot of the Performance>CDN settings area?
    Thanks!

    Thread Starter Tecca

    (@tecca)

    Hey Marko. I’m using “Amazon Cloudfront over S3.” And yes, I can manually upload files to S3 and the CDN will serve them fine (WP Media files also automatically upload without me having to do anything).

    Here’s a screenshot of the CDN page. I noticed “not authorized” near Cloudfront: could that be the issue? Tests pass when uploading and the upload transfer queue gets sent appropriately to the CDN when I manually push the files over.

    View post on imgur.com

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tecca

    I am not seeing the screensthot
    You are using Push type which means taht the files need to be uploaded manually. This is the older way of how the CDN was working. You may want to try switching to Pull type using Amazon Cloudfront.
    Also, I am not seeing the screenshot. Can you please re-upload it?

    Thanks!

    Thread Starter Tecca

    (@tecca)

    Hey Marko! Thanks for the suggestion with Push/Pull, I suppose I’ve been using W3 Total Cache for so long on my sites that I never moved over to Pull. I switched to Pull and it’s working great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.