WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3 + Cloudfront not serving my files as cdn (7 posts)

  1. MichaelXCheng
    Member
    Posted 1 year ago #

    so i've been attempting to use Cloudfront for my new personal wordpress site.
    michaelxcheng.com
    i dont have my files on S3. im using direct origin to my website hosted on hostgator.
    i set up the cloudfront distribution with http only point to my website url with custom ttl of 0.
    i pointed my cname called cdn.michaelxcheng.com to the domain provided cloudfront.
    i waited for the distribution to be deployed.

    then i went over to my w3 plugin in wordpress
    everything is default cept i turned on Set expires header and Set entity tag (eTag)
    i enabled on cdn, chose origin pull - amazon cloudfront
    went over to cdn tab, entered my access id and etc. Replace site's hostname with my own cname.
    tested the distribution and it passed.

    i went over to webpagetest and none of my files are being served by the cloudfront
    http://www.webpagetest.org/result/121123_PN_GY3/1/performance_optimization/#use_of_cdn
    i went over to cdn.michaelxcheng.com and noticed none of the files are on the cdn either
    did i miss something or do something wrong?
    thank you

    PS:i have videos hosted on s3 with cloudfront cdn, no cname, and they stream perfectly thur cloudfront.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. MichaelXCheng
    Member
    Posted 1 year ago #

    in case another plugin is causing this problem
    here are a list of plugins i use that are related
    Better WordPress Minify
    Disable Comments
    SEO Ultimate
    Use Google Libraries
    Video.js - HTML5 Video Player for WordPress
    W3 Total Cache
    WP-Optimize

  3. MichaelXCheng
    Member
    Posted 1 year ago #

    please note i've attempted deleting reinstalling w3, disable-delete-recreate my cloudfront distribution, changing cname, trying without cname.

  4. MichaelXCheng
    Member
    Posted 1 year ago #

    i've also used cloudflare and maxcdn on this wordpress blog via w3 without problem. but i switched to cloudfront as its more cost efficient.

  5. bheadrick
    Member
    Posted 1 year ago #

    that's odd - some of your content is getting picked up by cloudfront, but not all of it. You're using origin pull?
    according to webpagetest, it looks like it's only picking up js and css, so maybe add uploads to the folders that get served by cdn as well as /wp-content/plugins

  6. MichaelXCheng
    Member
    Posted 1 year ago #

    problem solved. mod please delete my post. thanks

  7. titush
    Member
    Posted 1 year ago #

    what was the solution?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.