使用PHP AWS-SDK缓存CloudFront保护的链接
我们有一个类用于生成到S3上受保护资产的链接,我们也在尝试与cloudfront链接 AWS-SDK for php提供了缓存生成链接的缓存机制。这适用于受保护的S3链接,但不会为CloudFront链接生成缓存 这是否不受支持? 或 这是我应该向维护人员报告的错误吗使用PHP AWS-SDK缓存CloudFront保护的链接,php,amazon-s3,amazon-cloudfront,Php,Amazon S3,Amazon Cloudfront,我们有一个类用于生成到S3上受保护资产的链接,我们也在尝试与cloudfront链接 AWS-SDK for php提供了缓存生成链接的缓存机制。这适用于受保护的S3链接,但不会为CloudFront链接生成缓存 这是否不受支持? 或 这是我应该向维护人员报告的错误吗 //caching does not work here function _generate_cf($bucket, $filename, $time){ $this->_cf = new Ama
//caching does not work here
function _generate_cf($bucket, $filename, $time){
$this->_cf = new AmazonCloudFront();
return $this->_cf->cache('1 hour')->get_private_object_url($bucket, $filename, $time);
}
//caching does work here
function _generate_s3($bucket, $filename, $time){
$this->_s3 = new AmazonS3();
return $this->_s3->cache('1 hour')->get_object_url($bucket, $filename, $time);
}