背景
今天在優化ADTS3.0項目的過程中遇到了ckplayer拉流異常的問題,問了同組其他小夥伴,說是需要禁用瀏覽器的緩存。
解決
而在代碼中開啓這個功能就需要使用meta標籤,具體的做法是:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
參考文章:頁面的緩存與不緩存設置
延伸
而說到meta標籤,突然想起了前些天去掌閱面試時的一道面試題:
<meta name="viewport" content="width=device-width"/>和
<meta name="viewport" content="width=100%"/>一樣嗎?
針對這個問題,也找了好幾篇文章看,附上鍊接: