簡體   English   中英

Angular index.html 無緩存?

[英]Angular index.html no-cache?

index.html 帶有緩存,但如果它不斷重新加載對我來說會更好,我不想有緩存。 我怎樣才能做到這一點

謝謝!

回答,使用 meta HTML 標簽,禁用瀏覽器緩存

<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">

<meta http-equiv="Pragma" content="no-cache">

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM