通过CDN访问源站提示重定向的次数过多(阿里云)

CDN的回源端口设置为80,而源站又开启了HTTP重定向至HTTPS的功能,这样的话客户端无论是通过HTTP还是HTTPS访问CDN加速域名时,CDN在回源的时候都是使用HTTP请求源站,此时会触发源站的HTTPS强制跳转逻辑,然后源站会要求CDN重新发送一个HTTPS的请求,但是CDN仍然会发送HTTP请求,就会出现反复重定向问题。

the Difference Between A URL And A URI

What is the Difference Between A URL And A URI?

As a developer, you’ve already heard about URL countless times. You may have also come across URI before and now you want to know what is the difference between the two if there’s any. They are often used interchangeably but we have to differentiate between the two. Before doing a comparison, let’s see what each […]

Downloading Age Restricted Videos With Youtube-DL

Recently I wanted to download a YouTube video using YouTube-DL, but received the following error message: Although I disagree strongly with YouTube’s increasing habit of haphazardly applying age restrictions on videos, I still wanted a local copy of the video. The solution is to pass a cookie to YouTube as part of the download process […]

Second Edition of Automate the Boring Stuff with Python

Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners

The second edition of this best-selling Python book (100,000+ copies sold in print alone) uses Python 3 to teach even the technically uninclined how to write programs that do in minutes what would take hours to do by hand. There is no prior programming experience required and the book is loved by liberal arts majors […]

Competitive Programming in Python: 128 Algorithms to Develop your Coding Skills

Want to kill it at your job interview in the tech industry? Want to win that coding competition? Learn all the algorithmic techniques and programming skills you need from two experienced coaches, problem setters, and jurors for coding competitions. The authors highlight the versatility of each algorithm by considering a variety of problems and show […]