將頁面設置爲不可以被緩存代碼:瀏覽器
本章節分享一段代碼實例,可以將頁面設置爲不可以被瀏覽器緩存。緩存
代碼以下:ui
<meta charset=" utf-8"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache, must-revalidate"> <meta http-equiv="expires" content="0">
將以上代碼放在網頁的頭部便可實現此功能。spa