Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Por que você precisa de uma CDN para seu blog WordPress? [Infográfico]

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

Você está se perguntando o que é uma CDN ou “rede de distribuição de conteúdo” e por que ela é importante para o seu site?

Se você deseja acelerar seu site WordPress, uma CDN é uma ferramenta extremamente valiosa. Ela entrega rapidamente o conteúdo ao usuário final em diferentes locais e melhora a experiência do usuário.

Neste artigo, mostraremos por que você precisa de uma CDN para seu blog WordPress.

Why You Need a CDN for Your WordPress Blog

Infográfico

What is a CDN and Why you need a CDN

Para saber o que é uma CDN, basta clicar na imagem acima para ver o infográfico. Você também pode continuar lendo nosso artigo para obter detalhes por escrito.

Observação: só para esclarecer, uma CDN é algo que você usa além de ter uma conta de hospedagem na Web porque ajuda a acelerar as coisas.

Uma CDN não substitui uma conta de hospedagem na Web, pois você ainda precisa ter um provedor de hospedagem como SiteGround ou Bluehost.

O que é uma CDN?

CDN é a abreviação de Content Delivery Network, que é uma rede de servidores que fornece conteúdo estático em cache de sites para usuários com base na localização geográfica do usuário.

Se isso parece muito complicado, vamos explicar em palavras mais simples.

Como funciona uma CDN?

Normalmente, quando um usuário acessa seu blog WordPress, o navegador dele faz o download do site do servidor do seu host, como Bluehost, SiteGround ou HostGator. O servidor do seu host da Web está localizado em um local físico, por exemplo, Houston, Texas.

Isso significa que todos os usuários estão acessando esse único servidor no Texas para visualizar seu site WordPress. Agora, se você tiver um grande volume de tráfego, poderá sobrecarregar o servidor, o que resultará em um site de carregamento lento ou até mesmo em uma falha do servidor.

É nesse ponto que uma CDN é útil. Uma CDN é uma rede de servidores espalhados por todo o mundo. Quando você usa uma CDN, seu conteúdo estático é armazenado em cache e em todos esses servidores.

How does a CDN work

O conteúdo estático inclui imagens, folhas de estilo(arquivos CSS), JavaScript e muito mais. Quando um usuário visita seu site, a tecnologia CDN o redireciona para o servidor mais próximo de sua localização.

Por exemplo, se o seu servidor principal estiver hospedado em Houston, Texas, e alguém de Durham, Inglaterra, tentar acessá-lo, essa pessoa será redirecionada para o servidor mais próximo, que pode estar em Londres.

Isso limita o número de saltos na Internet necessários para transmitir os arquivos estáticos ao usuário final. Como o computador do usuário está mais próximo do servidor CDN, os arquivos serão carregados mais rapidamente.

Ao ter seu conteúdo disponível em vários servidores em todo o mundo, você pode fazer com que suas páginas carreguem mais rapidamente do ponto de vista do usuário. Em palavras simples, quanto mais próximo o servidor CDN estiver do local onde o usuário está, mais rápido ele receberá o conteúdo.

Você pode estar se perguntando se vale a pena usar uma CDN em seu site. Vamos ver por que você precisa dela para o seu blog WordPress.

Por que você precisa de uma CDN para seu blog WordPress?

Ter uma CDN pode afetar o desempenho do seu site e melhorar a experiência do usuário. Veja a seguir algumas das vantagens de usar uma CDN:

  • Velocidade – uma CDN ajuda a melhorar o tempo de carregamento da página do seu site e a torná-lo mais rápido.
  • Resistência a falhas – o uso de uma CDN permite que você distribua a carga para vários servidores em vez de ter 100% do tráfego em nosso servidor principal, o que diminui a probabilidade de falhas.
  • Experiência do usuário aprimorada – Com uma CDN tornando seu site mais rápido, você notará uma redução na taxa de rejeição do site. Ela também aumenta o número de páginas visualizadas por cada usuário. Claramente, um site rápido significa uma melhor experiência do usuário.
  • Melhoria no SEO – o Google declarou que sites mais rápidos tendem a ter uma classificação mais alta nos mecanismos de pesquisa. Uma CDN pode impulsionar o SEO do WordPress e ajudá-lo a obter classificações mais altas de palavras-chave.

Qual é a melhor CDN para WordPress?

Há muitos serviços de CDN para WordPress no mercado. Recomendamos o Bunny.net como o melhor provedor de CDN a ser usado em seu site WordPress. Eles têm servidores espalhados por todo o mundo e oferecem planos de preços acessíveis.

Se você estiver procurando um serviço de CDN que também ofereça recursos de segurança, sugerimos usar o Cloudflare. Eles oferecem um poderoso firewall e CDN para WordPress para proteger seu site de diferentes ameaças e, ao mesmo tempo, garantir tempos de carregamento rápidos.

A Sucuri é outra ótima opção para uma CDN que oferece recursos de segurança. No entanto, talvez você queira ler esta postagem sobre os motivos pelos quais o WPBeginner mudou do Sucuri para o Cloudflare.

Guias especializados relacionados ao desempenho do WordPress

Agora que você sabe como uma CDN pode acelerar seu site, talvez queira ver outros guias relacionados ao desempenho do WordPress:

Esperamos que este artigo tenha ajudado a entender por que você precisa de uma CDN para seu blog do WordPress. Talvez você também queira ver nosso guia sobre como obter um certificado SSL gratuito para seu site WordPress e nossas escolhas de especialistas para os melhores plug-ins do WordPress para sites comerciais.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

99 ComentáriosDeixe uma resposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Kam says

    Thanks for this helpful article.

    I am with Bluehost and recently I selected CDN and noticed that my website was loading much faster. But, some users could not access my website as the following message came up:

    ERR_SSL_UNRECOGNIZED_NAME_ALERT

    I got Bluehost to revert back to my original setting. Is their a way around this?

    • WPBeginner Support says

      You would want to reach out to BlueHost’s support and they should be able to assist.

      Administrador

  3. Jim Boult says

    Thank you for clarifying the purpose of a CDN. A very straightforward and easy to understand explanation. wpbeginner is a great resource and I’m starting to appreciate your value to the WordPress community!

  4. Gagan says

    Can you please compare some Free CDN service for low traffic site which can’t afford services like MAX CDN. Cloudflare, Incapsula and Amazon are offering free cdn but don’t know which one to choose.

  5. Erwin says

    Thanks for interesting post.
    If I understand it correctly CDN is useful for websites with international orientation, but not for websites with a national user base. I am located in the Netherlands (small country), and my website is focusing on people in the Netherlands. Am I correct that CDN is not going to improve loading speed for my customers?

  6. Kawsar says

    If you expect to get 2/3 k user maximum per day you never need CDN. It do not improve any performance . just choose a good hosting and fast theme.

  7. Swati says

    Thank’s for this article .it was easy to understand. I just wanna know how much does it cost .the basic price. I am from India.

  8. Weedney Desmornes says

    I have a MacBook Air and I do not want to overload it with files and downloads because the MacBook Air is not designed for that. Is there any way I can begin a website without overloading my computer?

  9. Ishaan Mehta says

    hey..i wanna use cloudflare..
    but they require to changes nameservers..will it cause any problems to d original hosting if i point domain nameserver details to cloudflare, n not to hostgator? or it will just work out automatically..? i m using wordpress 4.4.2 btw..plz reply..i need ur help! :-)

  10. Krishnandu Sarkar says

    Can I increase Default Cache Time to 12 month in MaxCDN? As the images, css, js that I have will never change. Yes I may add more images as I add more posts. But existing ones will be same as usual forever.

  11. shailaja says

    I registered cloudflare cdn to my . but all static files are not hosting by cloudflare. why any cloudflare settings is require.

    • Fritz says

      Fatt Kay, CloudFlare is free.

      To WPBeginner: “Why You Need a CDN for your WordPress Blog” is not a question and should not have a question mark. “What the heck is a CDN” is a question and should have a question mark. Nit-picky? Maybe, but mistakes like this are jarring to some of us, and detract from the value of your content. :-)

  12. Germain says

    so i think i going to singup with justhost.com and i saw that them had a global cdn my question is if anyone know if that service its automatically activated or not?

  13. Alex Mega says

    How much total bandwidth would you recommend to purchase? Where could I find out how much bandwidth we go through on a regular basis. I mean traffic wise I’m sure it depends on location of users. So as a company that may see 100,000 page views/50k visitors or more a month is 100GB of bandwidth enough?

  14. Lazy Sapper says

    I have been using Cloudflare for CDN. But unfortunately, I don’t see decline in the consumption of CPU resources.

  15. Syed Balkhi says

    Just updated the article.

    To answer your question: No CDN does not replace a hosting account. It works with your hosting provider to balance the load and speed things up. You still need a web hosting provider.

  16. Naval says

    What do you think about this cdn speed test tool at spooster.com? Should I follow their recommendation if I choose to go for a free solution?

  17. Mark says

    I would recommend going with high quality hosting with your own static IP address and reliable hosting/page refresh rates before using CDN.

    It’s my understanding that Google ranks sites based on their geographic targeting. Google seems to be focused on providing the best rankings for the smaller businesses in their local markets. This also improves Google’s advertising revenue by having many more sites competing for the same category advertising keywords.

    Larger companies are able to have multiple websites in multiple geographical locations and can more easily globally dominate ranking categories.

    It’s not clear to me that CDN provides a valuable multiple geographical location presence?

    Please comment on how CDN would improve say… your UK search engine ranking (UK visitor traffic) for example if your geographic target was the US?

    Thanks.

  18. William V. says

    Great overview on what a CDN is and how it works.

    I just wanted to add one note… CDNs don’t only accelerate the delivery of static content, but also dynamic content (any content generated in real time by the origin server— e.g. applications) as well. Dynamic content is not cachable, but CDNs can speed up the request and returns from the server through a series of proxy servers/nodes strategically placed around the world… basically creating a more direct route for the data packets to travel through. Traditional internet protocols require that data packets travel through more connecting points, which delays the arrival of data packets… making it slower to load on the client.

    Cheers,

    • Ryan Williams says

      Not sure this is right. I’ve conducted tests with every major CDN out there, and in all cases it’s significantly slower accessing uncacheable dynamic pages rather than just going to the origin server directly.

      However, it is true that dynamic pages can too benefit from a CDN. The key is to use a CDN that allows almost instant purging, so you have it cache everything and then your application can send a ‘purge’ request to the CDN when it knows an update has occurred (e.g. new post or comment). Of course, this requires specific integration.

      • Sander says

        Actually, if the majority of the page is loaded via CDN content, and the dynamic part of the page is loaded via AJAX, a CDN could considerably increase the speed of a true dynamic page. Obviously, after the page is loaded, a CDN would not help increase the speed of the next AJAX load. But to an uninformed user, the feel of the website would be generally quicker with a CDN than without a CDN.

    • WPBeginner Support says

      We will probably do a comparison in some article. However, we would still recommend MaxCDN. Installing jetpack in self-hosted WordPress requires you to connect your WordPress site to WordPress.com and many users don’t want to do that. Also Photon just serves images it calls itself image acceleration and editing service, not a CDN.

      Administrador

  19. Hemant Aggarwal says

    Your website was down because of HostGator’s server issue. Does any CDN provides caching of web pages too?

  20. Alan says

    Hi, can you tell me if the servers all over the globe have static pages and you update a static page, how long does it take for the servers to update that page? Can you force and update of static pages, and how do you do that? Thanks

  21. Forever Long says

    Hello,

    I can see this blog entry is a few months old now, however I have just completed building a site on Wix and its sole purpose is e-commerce hopefully on a global scale. Problem is however we have noticed for a while that the website was sluggish during building and still is after going premium and adding more bandwidth. Can MaxCDN solve our problems? Wix only ever gives out canned responses such as “you must compress images” and “please disable the auto rotate function from your slideshow” this is aggravating to say the least. this is the website in question

    would be really grateful for your thoughts and assistance i’ve spoke to MaxCDN and they said they can help, however you never know whether its a sales pitch?

    • Jen Street says

      I have created a few sites using Wix, including my own portfolio site. I offer it to clients who want a very simple site with few updates that is cheap. I plan on moving my own site to WordPress. After learning to create in WP, although with each theme it’s like having to relearn how that specific theme operates, I highly recommend WordPress and find it to be my preferred platform to develop websites from.

  22. David says

    Just wondering, can your use two CDNs at once, like MAXCDN and Cloudflare?, what are the consequences? is it feasible?

  23. TechZoomOrg says

    Hi. I am using CloudFlare & WP Total Cache. Now, can we still get maxCDN working for the same site? Will it make a significant difference?

    What would you differentiate & suggest for people using CloudFlare for their WP sites.

    Eager to explore more. Thanks :)

    • wpbeginner says

      @TechZoomOrg If you are using CloudFlare then you don’t really need MaxCDN. From our understanding it is an either / or solution.

      • Raulnayak says

         @wpbeginner  Actually,Cloudflare doesnt affect the website as much as MaxCDN, I would recommend that you use both MaxCDN as well as cloudflare and it will be very fast!!

  24. wpbeginner says

    @kath.gamboa First of all the idea is that CDN service will not go down because they have so many datacenters across the globe. But lets imagine the worst and say that if it does go down, then all you have to do is go into your W3 Total Cache plugin, and turn off CDN for that time. All of your content will then be served directly from your server.

    Remember, you never upload any content directly to the CDN servers. You always upload it to your web hosting server, and CDN simply mirrors it.

  25. kath.gamboa says

    What happens when the CDN service goes down? Does that mean that the website’s static content will be inaccessible as well? If yes, are there ways to revive the website when the CDN service goes down?

  26. PeterApalais says

    Okay how does it work. I am with hostgaor. I want faster page loads etc. I personally live in Australia. So there is is delay because of that huge big distance the information has to travel. Okay for someone who lives next to the server in the USA, but not ideal for here in OZ.

    1. Does MaxCDN have a server here in Australia?

    2. What about Amazon S3, do they have a server in Australia?

    3. Does anyone?

    4. Does the CDN have copies off everything that is on my website. So like the HTML files as well? If so, maybe a work around for me would be to get a web host based here in Australia. This will allow fast loading here, then use the CDN for the rest of the world.

    5. So I guess, if I am browsing from the England, will it pull everything from the England server, and nothing from the hostgator server back in the US??

    Peter

    • Raulnayak says

       @PeterApalais I think yes,its der In sydney or its being planned.. See here, http://www.maxcdn.com/features/network/  .. I would recommend MaxCDN because they charge on pay-as-you go basis i.e as $ 40 per 1TB of data… Amazon is costly. It mirrors the whole website and creates cache or the websites so in the event that the server is down,the website doesnt go offline.. I personally use it for my http://www.allcancook.com

  27. wpbeginner says

    @AstroGremlin Doesn’t matter how big the site is, CDNs will help regardless. But if the small site is your personal site, then it is probably not worth you having the CDN.

    • Raulnayak says

       @wpbeginner Actually,the best part of MaxCDN is that it doent matter how big or small your website is, It has a wonderful pay-as-you go plan where you have to renew only when you are done using the 1 TB you bought.. So if the 1 Tb doesnt get used up even after 2 years, its fine,the plan will go on… 

  28. AstroGremlin says

    I notice that the rate one pays depends on volume (which seems very fair). But how can I tell how many gigs my blog is serving up? Also, does CDN makes sense for a really low traffic site?

    On caching: I tried W3 but it was causing conflicts. I switched to Supercache and haven’t looked back.

  29. Peter says

    Hi,

    I have a question, is there any alternative plugin to use with WordPress and MaxCDN other than w3totalcache ?

    w3totalcache is causing some memory problems on my VPS server ?

    • Jason H says

      WP-Super Cache is a bit simpler to use that W3 Total Cache and has a tab to configure Origin-Pull CDNs. Otherwise, you can use another plugin in conjunction for Push CDNs but I would recommend Origin-Pull be a requirement of the CDN you go with.

  30. Bob says

    I on a bluehost shared server and was thinking about paying extra for a static ip address – would a static ip address increase my website speed?

    But now reading this I wonder if I should bypass the static ip address and just go for a CDN solution instead?

    I have done all the minifying, caching, etc, so did assume the next step was a static ip address. But perhaps it is really a cdn solution that I need?

  31. Peter says

    Hi,

    Could please provide some more info about those two cases:

    Improved User Experience – Since we started using a CDN, we have noticed a decline in bounce rate on our site. Furthermore, we have also seen increased in pageviews and numbers of pages viewed by each user. So clearly a fast site means improved user experience.

    Improvement in SEO – Google has clearly stated that faster sites tend to rank higher in Search Engines. We have noticed our site ranking higher once we did the optimization on our site.

    Something more, like how your counce rate and pageviews changed ?

    SEO in Google, how fast can you see something changes, by traffic monitoring or how come ?

    Tnx , I am happy CDN user from yesterday with your coupon as well.

    • Editorial Staff says

      When we optimized our site for speed, the site went about 240% faster. We saw a huge decline in bounce rate as people were not just exiting on the first page. They were going to other pages as well which means increase in pageviews. Clearly the user experience must have been improved by the faster site. Because we did not change the placement of related links or anything. Those were there before and after.

      In terms of google, it has been stated that the faster your site is, the more pages will get indexed per day.

      Administrador

      • Peter says

        Tnx for fast response to my comment.

        After implemnting CDN to my sites the onlu problem that i have is i cannot test how much faster it goes now.

        Pingdom is not working now, YSlow in Firefox also stops to work.

        How you test your site if i may know.

        Tnx

        • Peter says

          Hi,

          Ok, listen to my horror story.

          After implemnting some CDN to my couple of WordPress websites, what i mean implement, delete old cache systems on those sites and installed W3 Total Cache plugins.

          I setup evrything as it should be and go to sleep.

          Now from this morning i have big problems with my VPS server.

          Don’t know what is going on but my CPU is from time to time (short period of time) goes like 100% , memory is bigger & bigger, swap is starting to work… tasks are going from normal about 60 to 100 or even more.

          Anyway i am fighting with this one almost 10 hours without sucess. I reboot server, soft&hard and make many stuff but nothing seems to work.

          In past server was not doing nothing almost , now it is extreme busy.

          I think this is too much for me and i need to find WordPress+Linux pro who will help me with that problem.

          Cheers

        • Gigi says

          Delete w3totalcache and try w-supercache, i have deleted w3 and with wpsupercache my site is loading more fast.

  32. Rich Kent says

    Hmm. Still haven’t received an activation email. I did receive an email asking how I like the service – replied to that saying I’m still not setup, and haven’t heard anything back. I’m starting to think I made a mistake signing up with MaxCDN. I’ve sent 2 more emails, and tried to text chat, but that timed out and I got a ‘send an email’ message. :(

    • Rich says

      Just FYI – Got in touch on Monday and worked it out. I’m very happy with my sites performance now that I have it working. MaxCDN = good!

      I should note that I’m not using this on my site (under my signature) – at least not yet – so don’t let that be the judge of speed. I’m using the CDN on other sites that actually get high volume. :)

      They could use a bit of work on CS, but maybe just caught them at a bad time. The network itself appears to be good enough that it’s worth it either way.

  33. Tim says

    This is not something are new blogger would need to worry about for a while though right. Even if someone does load it in England, if there is not much content does it matter?

    Thanks,

    TJ

    • Editorial Staff says

      No matter how big your site is, CDN will almost always speed up the site. However, keeping server load down is not something that new sites have to worry about, so in that aspect (You don’t need it). But in other aspects, CDN will help you. We never launch any site without utilizing CDN from Day 1.

      Administrador

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.