简体   繁体   English

Azure 媒体播放器 - 缓存控制

[英]Azure Media Player - cache-control

I'm using Azure Media Player for video playback and that works great.我正在使用 Azure Media Player 播放视频,效果很好。 However, the media player css/js/wof files do not have any cache-control headers set.但是,媒体播放器 css/js/wof 文件没有设置任何缓存控制标头。 They come from the amp cdn (amp.azure.net).它们来自 amp cdn (amp.azure.net)。 Am i doing something wrong?难道我做错了什么? I cannot find any information whatsoever regarding Azure Media Player and client side caching.我找不到任何有关 Azure 媒体播放器和客户端缓存的信息。 What is the recommended way to set up client side caching when using amp.azure.net ?使用 amp.azure.net 时设置客户端缓存的推荐方法是什么?

According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching , "HTTP is designed to cache as much as possible, so even if no Cache-Control is given, responses will get stored and reused if certain conditions are met. This is called heuristic caching."根据https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching ,“HTTP 旨在尽可能多地缓存,因此即使没有给出 Cache-Control,响应也会被存储并如果满足某些条件,则重复使用。这称为启发式缓存。 In the response to the azuremediaplayer.min.js, azuremediaplayer.min.css, and the woff2 file, I see no cache control directive as you mentioned.在对 azuremediaplayer.min.js、azuremediaplayer.min.css 和 woff2 文件的响应中,我没有看到您提到的缓存控制指令。 Therefore, there are no specific restrictions on caching.因此,对缓存没有具体限制。 In most cases this means that all three files should be cached normally.在大多数情况下,这意味着应该正常缓存所有三个文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM