Akamai 收费问题
我想知道是否有人对此有一个简单的答案。如果您访问 Akamai 服务器获取图像,但返回的响应是 304 代码而不是 200,那么 Akamai 是否会对调用收取费用,因为 304 没有返回任何数据并且图像是从浏览器缓存提供的?
I am wondering if anyone has an simple answer to this. If you hit an Akamai server for an image, but the response is returned with a 304 code instead of a 200, does Akamai charge for the call since no data is returned with a 304 and image is served from the browser cache?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您所说的收费是指计入您每月的带宽分配,那么就不会。假设您使用其 Origin Pull 服务,唯一的例外是文件位于您的缓存中但未存储在 Akamai 的边缘服务器上。在这种情况下,Akamai 从您的服务器中提取文件,这会导致带宽受到少量影响,因为传入和传出流量均由 Akamai 计算。
If by charge you mean count against your monthly bandwidth allotment, then no. Assuming you're using their Origin Pull service, the only exception is if the file is in your cache but not stored on Akamai's edge servers. In that case, Akamai pulls the file from your server which would incur a small bandwidth hit as both incoming and outgoing traffic is counted on Akamai.
嗯,这取决于您的计费方式。按带宽还是按浏览量?
如果按带宽,那么是的,您将需要付费并且比特将代表您传送。
如果您的对象位于缓存中,则不会有任何差异。如果对象位于缓存中,则 Akamai 无需返回源来获取数据。
Well, it depends on how you are being billed. By bandwidth or by pageviews?
If by bandwidth, then yes, you would be charged and bits would be delivered on your behalf.
There is no discrepancy if your object is in cache. If the object is in cache, then Akamai won't need to go back to origin to fetch the data.
3xx 响应仍然会为每个请求传输少量字节来告诉您有关响应的信息。这通常由 HTTP 标头/cookies + 3xx 响应和它想要将您重定向到的 URL 组成。
因此,您将在用户和边缘节点之间产生少量成本,如果请求是缓存未命中或不可缓存,那么您的源服务器和 Akamai 之间也会产生带宽成本。
3xx responses still transfer a small number of bytes per request to tell you about the response. This typically consists of HTTP headers / cookies + 3xx response and the URL it wants to redirect you to.
Therefore you will be incurring a small amount of cost between your user and the edge node, and if the request is a cache miss or not cacheable, then also bandwidth cost between your origin server and Akamai.