How does segmentfault shorten the image URL? In this example, the URL is shortened. Actually, the upyun CDN address is used to solve the problem. thank you!
How does segmentfault shorten the image URL?
In this example, the URL is shortened. Actually, the upyun CDN address is used.
Thank you!
Reply content:
How does segmentfault shorten the image URL?
In this example, the URL is shortened. Actually, the upyun CDN address is used.
Thank you!
Copy it to your browser and check it out. It is indeed upyun.
I guess the short URL generated by the upyun URL
And then directly output
It's not hard to understand. you must have used the short website,
This is to upload an image → segmentfault Upload to youpai cloud → add a record to the database [youpai cloud file name of the image, generate a random slug] → ajax return.
When this URL is accessed, the segment queries the corresponding image address and jumps to the URL 302.