Skip to main content
11 votes
Accepted

Can CloudFlare use different origins based on path pattern?

This is something that they recently started offering as an enterprise feature see: https://support.cloudflare.com/hc/en-us/articles/206190798-Using-Resolve-Override-in-Page-Rules
Baldur's user avatar
  • 226
8 votes

Facebook crawler with no user agent spamming our site in possible DoS attack

Sources say that Facebook/Externalhit does not respect crawl-delay in robots.txt because Facebook doesn't use a crawler, it uses a scraper. Whenever one of your pages is shared on Facebook, it ...
Michael d's user avatar
  • 4,813
8 votes

Using the Internet Archive’s Wayback Machine as a CDN

No. In fact the Internet Archive is not a CDN. Following your own link we see A content delivery network, or content distribution network (CDN), is a geographically distributed network of proxy ...
nealmcb's user avatar
  • 181
7 votes
Accepted

Will CDN affect my SEO?

Indexed images are associated with the domain that host the HTML where they are shown, so, no worries about the CDN and your domain. Of course, it will affect SEO in a good way, cause the speed of ...
Emirodgar's user avatar
  • 3,817
6 votes

Can I use imgur as a CDN?

It looks like they clarified their TOS to specifically shield them from being used as a CDN (emphasis mine): Also, don't use Imgur to host image libraries you link to from elsewhere, content for ...
MayeulC's user avatar
  • 161
6 votes

How can CloudFlare offer a free CDN with unlimited bandwidth?

CloudFlare is a caching proxy so egress (out) typically exceeds ingress (in), usually by around 4-5x. Our bandwidth bill is therefore calculated on egress so we don't pay for ingress. This is part of ...
Sista Fiolen's user avatar
6 votes
Accepted

Why should I use CDN when 97% of my traffic is from one country?

The value of a CDN is use case dependent. As others have mentioned, a CDN can have benefits, but its not magic. In some edge cases it can actually slow things down - particularly if your server and ...
davidgo's user avatar
  • 8,104
5 votes
Accepted

Can I migrate the hosting of my CDN configured site?

If I understand this correctly you want to only change your hosting, and keep your current settings via Cloudflare. If that is the case... All you need to do is, on your CloudFlare DNS Zone File ...
norcal johnny's user avatar
5 votes

Parallelize downloads with one server by using apache

Yes, this is a perfectly valid solution to the problem. It also covers the "use a cookieless domain for static assets" speed recommendation, if setup correctly. This won't add additional server load, ...
Tim Fountain's user avatar
  • 4,474
5 votes
Accepted

Is it possible to block cookies that are set by externally hosted content?

You have no control over cookies that might be set by an external resource on a different domain. These (third party) cookies are set on the "external domain", not the domain of your site. Fundamental ...
MrWhite's user avatar
  • 42.9k
5 votes
Accepted

Why pay for a distributed DNS service when ISPs cache lookups?

You shouldn't host DNS in your basement. At a minimum you should have 3 DNS servers located in different geographic locations on separate networks. Otherwise DNS is a single point of failure. Your ...
Stephen Ostermiller's user avatar
5 votes

Is a media CDN bad for image SEO?

Using a CDN such as that provided by AWS, is a great way to deliver your images with optimum speed. If you use Google PageSpeed Insights they often recommend this type of tactic. This is great for ...
Alec Sharratt's user avatar
5 votes
Accepted

Cache-Control for ads.txt, robots.txt and sitemap.xml files that are generated dynamically

I understand you want to use Cache-Control private/no-store because you don't want the CDN to cache an outdated version of those files. However, not caching these files (i.e. all requests go back to ...
iangetz's user avatar
  • 166
5 votes

Will website with frequently updated server-generated content benefit from CDN?

Most likely (although its not possible to quantify this benefit with the information provided - Im not suggesting the benefit is worth the cost, just that its still there.) One of the things a CDN ...
davidgo's user avatar
  • 8,104
4 votes

Local files vs. CDN

Hosting on a CDN has many disadvantages: Privacy. Everytime you go to a site that hosts scripts/stylesheets/fonts on a CDN, the CDN knows about you visiting the site. Offline time. In the last weeks ...
cari's user avatar
  • 149
4 votes

CloudFlare isn't working as CDN

In addition to Yhorian's explanation, you can find which Cloudflare's datacentre you're being routed to looking at the output of a request to https://yourdomainoncloudflare.com/cdn-cgi/trace, as ...
Étienne Labaume's user avatar
4 votes
Accepted

CloudFlare isn't working as CDN

You're likely using a geolocation service to determine the location of the IP address. This may not accurately tell you where the server for that IP is located - Cloudflare owns large IP blocks. These ...
L Martin's user avatar
  • 4,023
4 votes

What is the advantage to hosting static resources on a separate domain?

Another reason for rendering static files from an alternate domain is to provide an additional security control through isolated web origins. The browser's same-origin policy controls ensure that ...
evan.bovie's user avatar
4 votes
Accepted

IllegalLocationConstraintException on CloudFront (with S3)

My issue was because my CloudFront origin was not in us-east, and when you auto-select your bucket's origin in CloudFront, it doesn't add the location prefix to the url. So make sure you add your s3 ...
senty's user avatar
  • 171
4 votes

How does Cloudflare do HTTPS for my site when I haven't provided them with an ssl certificate?

As NuTTyX as said your name is in the SAN section. You can see it quickly that way: $ openssl s_client -connect copyurls.ml:443 -servername copyurls.ml -showcerts </dev/null |& grep -A100 '...
Patrick Mevzek's user avatar
4 votes
Accepted

Effect of a CDN on latency of an overseas web server

The whole theory of a CDN (content delivery network) is that visitors can access a site from a server closer to their location than to the source, assuming they are some distance away. The net effect ...
Steve's user avatar
  • 8,513
4 votes
Accepted

Could a specific website be blocked or throttled for all users by Verizon

It is definitely possible for Verizon to do this. The rest if this answer can only be speculation - Especially if you are using HTTPS , and your site is "not dodgy" look at your hosting ...
davidgo's user avatar
  • 8,104
4 votes
Accepted

For a website behind a CDN, does it make sense to combine JavaScript into one file and host it on my server?

Improving Performance The answer comes down to a balancing act. In addition to your JS, I would also pay just as much attention to your CSS. You used to be able self host anything that is not a ...
Mike Ciffone's user avatar
  • 6,539
4 votes
Accepted

Is there a CAPTCHA Challenge when using Cloudflare CDN?

When you visited ChatGPT, you likely ran into CloudFlare's Turnstile challenge. While strictly speaking Turnstile is a CAPTCHA due to its challenge-response pattern, CloudFlare markets it as not a ...
Maximillian Laumeister's user avatar
3 votes

Can CloudFlare use different origins based on path pattern?

You could use cloudflare workers: https://developers.cloudflare.com/workers/recipes/conditional-routing/ For your use case you could use the provided example, but change the logic to inspect the url ...
davidjnelson's user avatar
3 votes
Accepted

Moving website images to remote server vs moving database to remote server

There's no reason that this has to be one way or the other. I would say to optimize both. If you have a large number of images, a CDN makes sense, regardless of what you do on the server. Also, even ...
DKing's user avatar
  • 645
3 votes

“Resources with a "?" in the URL are not cached by some proxy caching servers”

From http://bizcoder.com/caching-resources-with-query-strings: Steve demonstrates when using a version number in the query string, the Squid proxy cache does not cache the static file at all. He ...
Tim Fountain's user avatar
  • 4,474
3 votes
Accepted

Facebook crawler with no user agent spamming our site in possible DoS attack

https://developers.facebook.com/bugs/1894024420610804 Per the answer from Facebook, any page shared on Facebook should expect that if their content is shared Facebook crawlers will increase traffic ...
L Martin's user avatar
  • 4,023
3 votes

Will CDN affect my SEO?

The source will be your site url and it will offer good SEO value when it has been setup correctly as the above answer said. However make sure all the technical details and your website code or ...
Alston Antony's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible