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.
Questions tagged [cdn]
317 questions
1
vote
0 answers
How to have cloudfront distribution listen on custom port for HTTPS?
I have setup a Cloudfront distribution on AWS with custom domain name to fetch firmware update file from S3. However, the existing devices that we have with customers make an HTTPS request to that same custom domain name on port 4433 instead of the…

sushrut619
- 123
- 2
- 4
1
vote
0 answers
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 have 3 custom log configs:
LogFormat "%h %l %u %t…

Rudiger
- 191
- 1
- 15
1
vote
2 answers
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 302 1200d;
I have one origin machine and around…

Quintin Par
- 4,373
- 11
- 49
- 72
1
vote
1 answer
Real World Architecture
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 example from a well know site like…

John Doe
- 495
- 1
- 6
- 12
1
vote
2 answers
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 China. So I decided to host all of them in my…

Thomas
- 223
- 1
- 3
- 11
1
vote
1 answer
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/ 2>&1 | egrep "^(<|>)…

greenpenguin
- 13
- 2
1
vote
5 answers
Copyrighted Materials in Content Delivery Networks
We have a website idea that is related with some specific files. What we will do is to crawl all the web and fetch some specific files, and as you guess, host them in CDNs. Some of the files could be copyrighted materials as there are a lot of open…

Yuri
- 193
- 7
1
vote
0 answers
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
and according to HTTP/1.1 Content-length is not…

EralpB
- 111
- 3
1
vote
1 answer
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 small, is there any point at all in using a…

Ollie Williams
- 123
- 1
- 5
1
vote
1 answer
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 this?
AWS CLI -> upload S3
CloudFront -> check…

Michele
- 169
- 10
1
vote
1 answer
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, that is in front of our web application…

ninjasense
- 141
- 1
- 6
1
vote
0 answers
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 running inside the SF (server2server) -- Obviously…

Carlo Bertuccini
- 111
- 3
1
vote
0 answers
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, etc) will be in a github repo on…

stwhite
- 123
- 1
- 6
1
vote
1 answer
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 little overkill to add a google cloud dns in front…

Thibault
- 11
- 1
1
vote
1 answer
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, after I successfully upload an image to my s3,…

f.khantsis
- 331
- 3
- 6
- 13