• I set up my Self Hosted CDN, uploaded all files,
    test server passed.
    No files in queue, everything uploaded great.

    If I run a test on Yslow, I get an Grade F on Use a Content Delivery Network (CDN)
    Page Speed also gives me Serve static content from a cookieless domain

    I can see the files uploaded when I use an ftp program to log into my subdomain which is cdn.mydomain.com

    How do I verify if CDN is working properly

Viewing 11 replies - 1 through 11 (of 11 total)
  • To verify if your CDN is working properly, look at the source code of your page. If all the CSS, JS, and image linkes say https://yourcdn.com/thefile instead of https://yourwebsite.com/thefile then your CDN is most likely working properly

    You must setup a cookieless domain in order for the notification in Pagespeed to go away.
    https://www.ravelrumba.com/blog/static-cookieless-domain/
    https://www.riyaz.net/blog/how-to-setup-your-own-cdn-in-30-minutes/technology/890/

    Your CDN will not show up in Yslow unless you add it to Firefox.

    HOW DO I ADD MY CDN HOSTNAME TO YSLOW FOR RULE 2?

    Rule 2 says to use a content delivery network (CDN). The score for this rule is computed by checking the hostname of each component against the list of known CDNs. Unfortunately, the list of “known CDNs” are the ones used by Yahoo!. Most likely these are not relevant to your web site, except for potentially yui.yahooapis.com. If you want an accurate score for your web site, you can add your CDN hostnames to YSlow using Firefox’s preferences. Here are the steps to follow:

    Go to about:config in Firefox. You’ll see the current list of preferences.

    Right-click in the window and choose New and String to create a new string preference.

    Enter extensions.yslow.cdnHostnames for the preference name.
    For the string value, enter the hostname of your CDN, for example, mycdn.com.

    Restart Firefox.

    Do not use quotes. If you have multiple CDN hostnames, separate them with commas.

    If you specify CDN hostnames in your preferences, they’ll be shown under the details for Rule 2 in the Performance view.

    Thread Starter Dorette

    (@dorette)

    Thanks kfawcett,

    To verify if your CDN is working properly, look at the source code of your page. If all the CSS, JS, and image linkes say https://yourcdn.com/thefile instead of https://yourwebsite.com/thefile then your CDN is most likely working properly

    The image paths are still the old ones, not my cdn.domain.com paths, so I guess they are not working properly

    Make sure you empty all your caches and refresh your browser at least two times. Then see if you notice anything.

    Is your site live? I can look also to see if it works for me.

    Thread Starter Dorette

    (@dorette)

    yes, is there an email I can send the link to you

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    @dorette, has @kfawcett sorted you out?

    Thread Starter Dorette

    (@dorette)

    Thanks Frederick, we are still working on it

    I just found some things in the unsuccessful file transfers,
    All the errors were source file not found
    Here is the last one not found

    source file
    /home/xxxxxx/public_html/wp-content/w3tc/min/069fde/home.include-body.590815657.js

    remote file
    wp-content/w3tc/min/069fde/home.include-body.590815657.js

    i replaced my site with xxxxxxxx

    does it mean the minify is not working and how do I fix the source and remote paths,

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Try to re-export all the files and make sure that it’s working as it should; i.e. you can open the exported files from the CDN in your browser.

    Thread Starter Dorette

    (@dorette)

    Thanks
    these are my setting for the CDN

    FTP hostname: https://ftp.xxxxxx.com
    FTP username: cdn_username
    FTP password: cdn_password
    FTP path: what should this be (blank or home/xxxxxx/public_html/cdn/
    SSL support:
    Replace site’s hostname with: https://www.xxxxxx.com

    WHAT SHOULD THE FTP PATH BE? I have it blank for now, because that is the only way my test passes, if I put in anything the test fails.

    xxxxx is my domain name

    @Dorette- Apparently it’s Ok to leave the FTP path blank. That’s the only way it works for me. If your test passes, you should be OK and able to upload files.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Yes it’s ok, it’s the root directory where uploaded files are available via the web.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: W3 Total Cache] How to verify Self Hosted CDN is working properly’ is closed to new replies.