You can configure origin-pull rules for buckets on COS Console. If the object you request does not exist in the bucket, or a specific request needs to be redirected, you can configure origin-pull rules to access corresponding data via COS. Origin-pull configurations are mainly used for data hot migration, redirection of specific requests, and other scenarios.
The success rate of data origin-pull depends on network environment.
httpsprefix. You can also add the port number after the domain name or IP address.
abc.example.com abc.example.com:8080 10.10.10.10 10.10.10.10:8080
A user whose APPID is 1250000000 created a bucket named "examplebucket-1250000000", and enabled CDN accelerated domain name:
Configure the origin-pull address of the bucket to:
Store the image picture.jpg at the origin server
Initial access from the client:
When COS finds that the object cannot be hit, it returns the HTTP status code 302 to the client and is redirected to the following address:
The origin server then provides the object to the client to ensure access, and COS copies picture.jpg from the origin server and saves it to the root directory of the bucket "example".
The second access:
COS directly hits the picture.jpg object in the root directory and returns it to the client.