0
내 서버가 index.html을 렌더링 할 때, 캐시 브리징 마술을 주입하여 버전이 바뀌면 스크립트를 강제로 다시로드합니다. 아무것도하지 않으면 모바일 크롬은 index.html의 새 버전이 있는지 묻지 않습니다. 내가 렌더링 된 index.html을크롬이 메타 태그를 사용하여 로컬에서 index.html (및 index.html 만)을 캐싱하지 못하게하는 방법은 무엇입니까?
<!-- never cache this locally -->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
에 다음을 추가하면
그것은 다시 /
를 가져 않고 원치 않는 부작용으로는 버전 번호가 동일하게 유지하더라도 스크립트의 아무도를 캐시하지 않습니다.