header("Cache-Control: no-cache"); 이게 무슨 뜻인가요? 채택완료
DoYegongs
7년 전
조회 3,109
영카트에 아래와 같은게 있던데요~
이게 무슨 뜻인가요? 캐쉬관련된것같은데..
// 만료된 페이지로 사용하시는 경우
header("Cache-Control: no-cache"); // HTTP/1.1
header("Expires: 0"); // rfc2616 - Section 14.21
header("Pragma: no-cache"); // HTTP/1.0
이걸 넣게되면 어떤점이 바뀌는건가요?
<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="Pragma" content="no-cache"/>
이거랑 다른건가요?
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인