简体   繁体   English

上载之后,机架空间云文件在CDN上延迟

[英]rackspace cloudfiles delay before on CDN after upload

I am implementing rackspace cloudfiles for a site. 我正在为站点实施机架空间云文件。 If a user uploads a profile image we want to store it on cloudfiles in a CDN enabled container. 如果用户上传个人资料图片,我们希望将其存储在启用CDN的容器中的云文件上。 This works only it takes a couple of secs before the file is available on the CDN. 仅在文件在CDN上可用之前需要花费几秒钟的时间才能起作用。

So when you upload your profile -> we store it in cloud -> reload the page it often isn't available yet resulting in a broken image. 因此,当您上传个人资料时->我们将其存储在云中->重新加载页面,通常它不可用,但会导致图像损坏。

Has anybody experienced this issue and if so how did you work around it? 有人遇到过这个问题吗?如果是,您如何解决这个问题?

Yes,this is a function of how CDN's work. 是的,这取决于CDN的工作方式。

The CDN (in the case of RackSpace, Akamai) must become aware of your content, so it takes some time for your content to show up on a CDN (usually just a matter of minutes). CDN(对于RackSpace,Akamai)必须了解您的内容,因此您的内容需要花费一些时间才能显示在CDN上(通常只需几分钟)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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