cdn预取用用户是在请求上完成的静态数据还是它完成的?

发布于 2025-01-21 15:42:34 字数 590 浏览 3 评论 0原文

按照 akamai -

内容输送网络(CDN)是一组地理 分布式服务器通过 使其更接近用户的位置。全球数据中心 使用缓存,该过程临时存储文件的副本,因此 您可以从启用Web的设备或 通过您附近的服务器更快地浏览器。 CDNS缓存内容 像您的代理服务器中的网页,图像和视频一样 物理位置。这使您能够做诸如看电影之类的事情 下载软件,检查您的银行余额,在社交媒体上发布或 进行购买,而不必等待内容加载。

因此,我主要对“社交媒体上的帖子”感兴趣

cdn 预摘要用户的社交媒体内容(静态?),或者是在用户的请求下完成的,因为预取可能是昂贵,复杂和浪费的吗?

预取通用的静态信息,例如网站的着陆页图像,病毒视频,产品图像(亚马逊必须使用CDN为其产品提供图像,其他时间将花费大量时间来加载图像,并且将是一个非常糟糕的体验) 。

As per Akamai -

A content delivery network (CDN) is a group of geographically
distributed servers that speed up the delivery of web content by
bringing it closer to where users are. Data centers across the globe
use caching, a process that temporarily stores copies of files, so
that you can access internet content from a web-enabled device or
browser more quickly through a server near you. CDNs cache content
like web pages, images, and video in proxy servers near to your
physical location. This allows you to do things like watch a movie,
download software, check your bank balance, post on social media, or
make purchases, without having to wait for content to load.

So I am mainly interested in "post on social media"

Will the CDN prefetch a user's social media content (static?) or will it be done at the user's request because prefetching can be costly, complex and wasteful?

Prefetching generic static information, such as a website's landing page image, a viral video, product images (amazon must use CDN to deliver images for their products else it will take lot of time to load images and will be a very bad experience) makes sense.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恋竹姑娘 2025-01-28 15:42:34

无论是社交媒体内容还是静态网站,Akamai都不会获取内容,除非请求到该内容的平台。当时,根据如何为您的特定站点配置平台,将在一段时间内为后来的用户缓存内容。

一些注释:

  1. Akamai可以配置为自动请求页面上链接的其他内容,而无需等待最终用户的浏览器发出请求。详细信息: https://techdocs.akamai.com/property-mgrerty-mgr/docs/prefething < /a>
  2. 您可以使用预取的可缓存和非可接合对象。详细信息: https://techdocs.akamai.com/property-mgr/property-mgr/docs/预摘要-Objects
  3. 您可以将akamai配置为 prefresh 该内容接近缓存时间限制的到期,并检查是否已修改。详细信息: https://techdocs.akamai.com/property-mgr/ doc/cache-prefresh-refresh

Whether it is social media content or a static website, content is not fetched by Akamai except when a request comes to the platform for the content. At that point, depending on how the platform is configured for your particular site, the content is cached for later users for a period of time.

A few notes:

  1. Akamai can be configured to automatically request the additional content linked on the page without waiting for the end user's browser to issue the request. Details: https://techdocs.akamai.com/property-mgr/docs/prefetching
  2. You can use prefetching for both cacheable and non-cacheable objects. Details: https://techdocs.akamai.com/property-mgr/docs/prefetchable-objects
  3. You can configure Akamai to prefresh that content as it nears the expiration of the caching time limit, checking to see if it has been modified. Details: https://techdocs.akamai.com/property-mgr/docs/cache-prefresh-refresh
冬天的雪花 2025-01-28 15:42:34

例如,对于用户配置文件,我不会使用缓存。同步所有数据以使其保持最新很复杂。

CDN系统通常让您设置是否缓存文件以及更新该文件的频率。

In the case of user profiles, for example, I would not use caching. Synchronizing all the data to keep it up to date is complicated.

CDN systems usually let you set whether to cache the file and how often to update it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文