gpt4 book ai didi

caching - 什么情况下浏览器会缓存

转载 作者:技术小花猫 更新时间:2023-10-29 12:48:35 25 4
gpt4 key购买 nike

浏览器在什么情况下会缓存文件?有时会,有时不会。如果这里没有人知道,我的下一步将是测试各种文件格式、文件大小和 htaccess 场景。

如果您不知道,您能想到您推荐测试的任何其他变量吗?

提前致谢!

最佳答案

以下工作是指示浏览器缓存文件。最后一行是使服务器传送具有正确 header MIME 类型的 webm 文件所必需的。

# Expires is set to a point we won't reach,
# Cache control will trigger first, 10 days after access
# 10 Days = 60s x 60m x 24hrs x 10days = 864,000
<FilesMatch "\.(webm|ogg|mp4)$">
Header set Expires "Mon, 27 Mar 2038 13:33:37 GMT"
Header set Cache-Control "max-age=864000"
</FilesMatch>
AddType video/webm .webm

关于caching - 什么情况下浏览器会缓存<video>文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5111382/

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