SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru DeNasio's Avatar
    Join Date
    May 2001
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    To CDN or not to CDN?

    Advantage of CDN: performance benefit, if the visitor to your webpage has already downloaded a copy of jQuery from the same CDN, it won't have to be re-downloaded

    Disadvantage of CDN: if the CDN is down then your website will not work!

    So what is your advice? To CDN or not to CDN?
    Ballot-Box.net - free polls for webmasters
    FormLog.com - free form processor

  2. #2
    SitePoint Mentor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,257
    Mentioned
    32 Post(s)
    Tagged
    5 Thread(s)
    It doesn't have to be one or the other - you can link to the copy on the CDN, but provide a local copy as a fallback.

  3. #3
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Always use a CDN where you can is the advice, Google's CDN is guaranteed to be online 100% of the time since they have so many cloud servers spread around the world. Personally I prefer to use CDN's but the only downside is you have no control over the expiry headers and what not but that is not a bad thing, while you may not have control over headers for CDN hosted content you do have complete assurance that your users are getting the files from the closest server to their physical location on Earth.
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  4. #4
    Non-Member
    Join Date
    Feb 2012
    Posts
    892
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    If the CDN is in-house, it's perfectly fine. If it's leeching, my personal opinion is not to CDN. You don't know where it's been


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •