Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cdn]

A Content Delivery Network is used to distribute data to end users of an Internet service. It is typically used for large scale distribution, and employs caching and numerous edge locations to speed up and reduce the bandwidth requirements of the process.

0
votes
0answers
18 views

Backend bucket versioning

We have bucket with some files behind the CDN, along with signed URLs. We are using query string with version to update content according to the best practices, e.g. file.ext?v=100. Everthing worked ...
0
votes
0answers
18 views

Content Security Policy: self domains and subdomains (nginx)

We host a bunch of websites, and at the moment our Content-Security-Policy header has a number of directives of this kind: add_header Content-Security-Policy "default-src 'self' ...
0
votes
0answers
29 views

China Hosted Site and Third-Party Web Services

Once I have a new China ICP license for my website, I am hosting my site in China, I have my China-based CDN in place, and SSL and HTTP/2 enabled for my core content – do I have to also ensure all my ...
0
votes
1answer
19 views

Can I use my own SSL for sub domains which are not using Cloudflare HTTP proxy?

I'm using the cloudflare free plan I have domain.com which will use cloudflare HTTP proxy but i have a subdomain sub1.domain.com which will not use cloudflare's HTTP proxy, can i still use my own SSL ...
0
votes
0answers
96 views

Correct log format dependent on route

I have a few virtual hosts running on a server, a couple are through a CDN and have X-Forward-For added to the headesr, sometimes it just goes through a load balancer where RemoteIPHeader is added. I ...
0
votes
0answers
85 views

Cloudfront: How to test Path Pattern matching without deploying any changes

I just need a way to test my path pattern for cloudfront first before saving the behavior for the pattern because I noticed that it's taking more than a few minutes for the changes to be deployed. ...
-1
votes
1answer
30 views

One domain, one wordpress system, different locations, different servers, low bandwith

I have a website with a low bandwidth (like 80.000 views per month, 1 mega or so every page) but that offers products to clients all over the world. A very specific business. The server is located in ...
-1
votes
2answers
69 views

How does a request gets directed to a nearby CDN edge server? [duplicate]

Let's say I have a website with a domain name, of course. The domain name has: One A record(example.com) which points to the origin server(or load balancer). One CNAME record(cdn.example.com) ...
1
vote
1answer
362 views

Configure AWS Cloudfront to log to S3 bucket in another AWS account

I have some AWS Cloudfront distributions spread out across different AWS accounts. I'd like to store the access logs from these distributions in a single S3 bucket in a single AWS account. This is ...
1
vote
2answers
253 views

CDN: Synchronizing cache across edge machines

I built a cheap CDN for my static website based on nginx’s HTTP caching. Context. Here’s are some parts of my cache configuration: proxy_cache_key "$scheme://$host$uri"; proxy_cache_valid 200 301 ...
0
votes
0answers
27 views

how to set up a waf via an amazon cloudfront cdn to an external site

I have a site hosted on a cloud foundry platform as a service. The PAAS does not come with a WAF out of the box and one of our security requirements is that we must have a WAF. Can I create an AWS ...
0
votes
1answer
206 views

Google cloud cdn - unclear cache hit ratio

I'm using google cloud cdn (Load balancer with a backend service) and the hit ration status is not very clear. In the image below you can see: Left image - CDN view - Value of cache hit ratio is "n/...
2
votes
1answer
514 views

Cannot Set Up Naked Domain on Azure CDN

What I am using: Azure CDN: Premium Verizon DNS: DnsMadeEasy I am struggling to setup all endpoints of my domain on Azure CDN; I am able to set up endpoints with a prefix to my domain (i.e prefix....
0
votes
1answer
578 views

Almost all the http APIs return a 502 bad gateway error after adding a CDN

I just added my website to a CDN provider https://www.qiniu.com/en. Then I realised that almost all my http APIs (https://www.funfun.ink/httpOnly...) returned a 502 bad gateway error. Additionally, ...
1
vote
1answer
66 views

Real World Architecture [closed]

I am kind of confused about the way real-world web applications are architectured and I would be happy for some clarification . I know that there are many methods and different approaches but an ...
-1
votes
1answer
87 views

No static file is cached

I have set up CloudFlare for my website http://www.funfun.org.cn, the caching level is Standard and The development mode is Disabled. By loading the home page http://www.funfun.org.cn/1/#/home, I ...
0
votes
1answer
672 views

Is there any way to use a Google-managed SSL certificate when using Google Cloud CDN?

This would be similar to AWS Cloudfront which can use a certificate that is generated by AWS for you. Is there anything like that here? This would be mostly for cost or ease of use reasons.
0
votes
1answer
69 views

Switch between using / not using CDN

Previously, I have used CloudFlare, where we can switch quickly between "active mode" and "development mode". In "development mode", static files are loaded directly from the origin server rather than ...
0
votes
0answers
31 views

How to surely tell if a static file is cached and optimised by CDN

I'm trying to use qiniu CDN to speed up my website in China and oversee. What I care most is the time when people load http://www.funfun.org.cn/1/#/home for the first time. To see how the website is ...
0
votes
0answers
42 views

Realise Mixed CDNs

I have seen "mixed CDNs" in some threads, which are not completely clear. For my website (hosted by a server in Alibaba China), I'm trying to use Alibaba CDN for visits from China and another oversee ...
0
votes
0answers
181 views

403 forbidden error after adding a CDN

Previously, http://www.funfun.org.cn worked in my browser. Then, I decided to add a CDN on top of it. So I added a CNAME for www.funfun.org.cn to funfun.org.cn.w.kunluncan.com. As a result, ping www....
0
votes
1answer
222 views

How does “Disable cache” work?

I have a website managed by CloudFlare and its CDN. when we choose Disable cache in Dev Tools of Google Chrome like here, by definition the browser refreshes static files. However, I would like to ...
0
votes
2answers
358 views

How to reduce TTFB time?

I have a website hosted by DigitalOcean (1GB Memory/20GB Disk/LON1) and CloudFlare. Lots of external librairies were from cdnjs.com, which worked well in Europe and US, but they were not stable in ...
0
votes
0answers
571 views

CloudFront HTTP/2 slower (high TTFB) than HTTP/1.1

My site was running on HTTP/1.1 with CloudFront at front, Webpagetest reports the load time usually at 2 seconds. Yesterday I enabled HTTP/2 (and SSL) on CloudFront, expecting to see an improvement. ...
0
votes
2answers
106 views

How to cache some requests based on request rate?

We have some super heavy APIs, say /api/heavy, it will slow down our system when peak time, we did some benchmark, if the simultaneous request count is greater than 200, the system becomes slow, and ...
2
votes
0answers
16 views

Proper way to handle file serving

We have a website where we our daily bandwidth use is roughly 10GB of user generated contents. The software layer is simply Heroku + some addons for DB and monitoring, and we are handling the uploads ...
1
vote
1answer
198 views

Nginx drops HTTPS from Akamai during rewrite

Akamai passes the HTTPS request to Nginx and Nginx drops HTTPS from the request as it performs a redirect. Here are the results from curl: $ curl -v -L https://oursite.com/life/facts-and-arguments/ ...
0
votes
0answers
31 views

Is there a traceroute equivalent for http applications?

My website is configured to be served by a CDN's network and I'd like to know how could I know exactly by which others HTTP applications my requests go through ? I'm interested in knowing how many ...
0
votes
0answers
46 views

AWS CloudFront Pricing for Uncachable Content

I am using AWS Cloudfront to cache static content (which is dynamically generated upstream). Some of the content is not worthy to cache publicly as it is very user-specific and it would be sufficient ...
0
votes
0answers
9 views

What happens if several clients in the same subnetwork request the same asset to a WebRTC based CDN?

Basically, I wonder how the traffic is routed when several (let's say up to 30) clients, all using the same gateway and being in the same wifi sub-network are requesting the same asset to a WebRTC ...
2
votes
0answers
188 views

WordPress site behind CDN; want -origin to bypass CDN

For a multi environment setup I have the following: https://www.example.com/ => CloudFront => https://www-origin.example.com/ => WordPress FastCGI This works fine. However I would like to be able to ...
1
vote
0answers
208 views

Cloudfront not compressing Transfer-encoding chunked

My setup looks like this: User->Cloudfront->Nginx->gunicorn Apparently nginx, doesn't compress (gzip) when there is a CDN inbetween (Via header present) so my nginx sends: Transfer-encoding: chunked ...
-1
votes
1answer
59 views

Do I really need cdn for video delivery? [duplicate]

If I'm going to create video delivery site for big country (Russia), should I use CDN for video? I believe, that store video in two places, Tokyo (for East part of country) and Frankfurt (for West ...
1
vote
1answer
27 views

need for CDN for website in one small country?

I sometimes make websites for businesses that trade only within the UK. If I am only interested in visitors from within the same country where the origin server is based, and the country is relatively ...
-1
votes
1answer
56 views

(Single Day - Peak) Dedicated Server Requirements for CDN Set-ups [duplicate]

Update: Comments made regarding how it is not a duplicate - fundamental question. Pre-Info: I am a game design specialized generalist with semi-practical software engineering skills in essence yet ...
0
votes
1answer
153 views

How to have CloudFront serves privated files

I want to use S3 + CloudFront for serving huge ~1,5GB files for download (not streaming). These files are premium, paid content so i don't want to expose them in the web. What's the best way to do ...
0
votes
0answers
323 views

Deliver static content on CDN directly using reverse proxy

I have a CDN which hosts static content (possibly Github pages or CloudFlare, depending on answers). Our server generates dynamically JSON resources. I would like all content to be accessible under ...
1
vote
1answer
77 views

Is it optimal to force SSL on my site at CDN, Web Server or Code level?

We are implementing a redirect rule to force our traffic to SSL. I was wondering what the most optimal way to force all traffic to SSL was? Our architecture has a CDN(Akamai), that is front of an ELB, ...
0
votes
0answers
113 views

CDN for multiple domains with mod_pagespeed (Apache)

I have a vps server with multiple sites and I have a cdn that is accessible by: example.gocache.com All of these sites are enabled to use this CDN however, I wanted mod_pagespeed to automatically ...
0
votes
3answers
57 views

Why have content site outside your domain

Why do sites deliver downloads or static content from outside their main domain name ? Obviously if you are using akamai or some 3rd party CDN to deliver your static content, but why would you put ...
1
vote
0answers
291 views

Websocket and CDN

I have an application which replies on both http and websocket: it is hosted outside the company server farm. This application is used both via browser/websocket and, through http, from applications ...
0
votes
1answer
189 views

SSL certificate on the CDN and the origin

One of our SSL certificate is about to expire next month. We use limelight CDN and we had provided them certificate when we started working with them. We also use same certificates on our sites. All ...
0
votes
1answer
87 views

How to use CDN to accelerate simple video site with PHP dynamic loading video files like Moodle?

I created a site with Moodle, and not very satisfied with the connection speed for video files stored on server. And I know CDN can accelerate the video file loading speed. But I 'm quite new and not ...
0
votes
0answers
79 views

Setup subdomain to reference asset files on main domain

I’m trying to set up a subdomain/cdn structure to help to parallelize the loading of page resources. The main domain will be accessed under https://www.example.com always. The assets files (js, css, ...
2
votes
3answers
4k views

AWS S3, CloudFront, web font CORS error

I've just moved from my previous CDN to CloudFront for two of my websites. First one is working fine but I used the same snapshot in DigitalOcean to create the 2nd site and here I am getting ...
0
votes
1answer
498 views

proxy_pass CDN file in NGINX, but get 502 bad request

I am using S3 to store an xml file and use CloudFront to distribute this file. I want to use nginx proxy_pass to locate this file without change my domain name. such as www.mydomain.com/filename.xml ...
-1
votes
1answer
76 views

Simple DNS Modifications, Directing to CDN [duplicate]

I'm reading through this guide which is quite thorough and helpful, but I've come across one paragraph that's stumping me. For your root domain, you'll change its A record to point to one of the ...
2
votes
1answer
4k views

Setting up CloudFront [Custom Origin] for EC2 instance

I have been checking things up & down on Google & AWS Documentation but can't seem to nail this one. I have an EC2 instance setup with a domain being served via a virtual host and I need to ...
1
vote
1answer
107 views

Friendly name for anycast IP with google Loadbalancer

I have created a CDN for our google cloud storage bucket. Everything works fine. Though we had to change our code and change our old loadbalancer friendly name with the ip address. Would it be a ...
0
votes
1answer
6k views

Cloudfront returns 403 for a minute after upload

I have a cloudfront distribution in front of an s3 bucket. Cloudfront urls are restricted, and keys must be url signed. The s3 bucket is also restricted, allowing only cloudfront to read Sometimes, ...