简体   繁体   中英

Understanding AWS CloudFront signed URL

After a few days of research, I am still not sure if I really understand Amazon CloudFront Signed URL's mechanism. Is that a fixed URL? Or it's different each time the page loads? To me, it only makes sense if that long, random looking part of the URL is different each time.

1) If it's changing, how do I generate it with Wordpress?

2) difficult situation : I am using a custom 360-degree video player and I need to provide the source videos as a list of URLs. How to add this list to this XML file if the signed URL keeps changing?

Sorry, but I don't seem to grasp the idea of signed URLs. Thanks!

S3 Pre-Signed URLs are different each time they are generated. Each pre-signed URL has an expiry date embedded inside it along with the credentials needed to access the object.

So each object's signature is different and the signature will be different each time the same object is pre-signed.

So you won't be able to pre-sign the URLs and save them for a long period of time.

Really, you should pre-sign them as the requests happen on the page and use as short an expiry time-period as possible that makes sense for your application.

If your video player is downloading the XML file of URLs from the web server, then you should generate a new XML file with new pre-signed URLs each time the file is requested from the client.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM