gpt4 book ai didi

amazon-web-services - 如何在 Amazon S3 中使用浏览器缓存?

转载 作者:行者123 更新时间:2023-12-03 14:33:12 24 4
gpt4 key购买 nike

我在 gtmetrix.com 上得到以下信息:

Leverage browser caching    
E (55)
52%
Server High
What does this mean?
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

http://mysite.s3.amazonaws.com/profile.png (expiration not specified)
http://mysite.s3.amazonaws.com/circle.player.css (expiration not specified)
http://mysite.s3.amazonaws.com/main.js (expiration not specified)
http://mysite.s3.amazonaws.com/not.the.skin.css (expiration not specified)
http://cdn-images.mailchimp.com/embedcode/slim-321711.css (expiration not specified)

我猜 mailchimp 文件无法修改。但是如何为 Amazon S3 Cloudfront 文件指定浏览器缓存?

最佳答案

通过亚马逊管理控制台,选择您的文件(或文件夹)。

enter image description here

转到属性选项卡,然后单击元数据。

enter image description here

最后,将 Cache-Control 添加到其标题并保存。

enter image description here

关于amazon-web-services - 如何在 Amazon S3 中使用浏览器缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15502416/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com