在Amazon S3自定义页眉 [英] Custom headers on Amazon S3
问题描述
时有可能有自定义页眉在Amazon S3任意命名?
Is it possible to have custom headers on Amazon S3 with arbitrary naming?
例如,我使用的是CDN指向亚马逊S3作为原始服务器,并为了使对CDN先进的功能,我需要使用一个自定义的标题X-东西,什么
For example, I am using a CDN pointing to Amazon S3 as the origin server, and in order to enable advanced functionality on the CDN I need to use a custom header "x-something-something"...
我认为它可能与X-AMZ-间 - (东西),但怎样做到这一点的是更为普遍,如X-(东西) - (东西)?没有AMZ
I see it's possible to do this with "x-amz-meta-(something)" but what about something more general like "x-(something)-(something)" without the amz?
推荐答案
我不认为这是可能与他们的当前API 。它们涵盖了主要的标题,您将需要缓存和浏览器的互操作性。
I don't think it is possible with their current API. They cover the major headers you will need for caching and browser interoperability.
我觉得他们是在只允许安全的 X-AMZ-元 -
prefixed自定义页眉,可能是为了避免与用户选择的头发生冲突时,他们更新他们在将来API
I think they are being safe in only allowing x-amz-meta-
prefixed custom headers, possibly to keep from clashing with user selected headers when they update their api in the future.
如果您需要连接到你的对象自定义属性,它应该是微不足道的解析出 X-AMZ-元 -
在客户端应用程序
If you need custom attributes attached to your objects, it should be trivial to parse out the x-amz-meta-
in your client application.
这篇关于在Amazon S3自定义页眉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!