🏫 TECH/🖼️ Front HTML, ASP, JSP, PHP, 웹 캐시 저장 방지 728x90 안녕하세요. 이사작전.com의 개발자 말랑고양입니다.오늘은 웹 캐시 저장을 방지하는 방법을 공유하려 합니다.다음은 각각의 케이스별 No-Cache 설정방법입니다.HTML인 경우 1234<META http-equiv="Pragma" content="no-cache"> <META http-equiv="Cache-Control" content="No-Cache"> <META http-equiv="Expires" content="-1"> Colored by Color ScriptercsASP인 경우 12345<% Response.Expires = 0 Response.AddHeader "Pragma","no-cache" Response.AddHeader "Cache-Control","no-cache,must-revalidate" %> Colored by Color ScriptercsJSP인 경우 1234567<% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0); if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); %> Colored by Color ScriptercsPHP인 경우 1234<? header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); ?>Colored by Color Scriptercs감사합니다.#웹 캐시 #캐싱 #캐시방지 #저장 #방지reference : https://support.microsoft.com/ko-kr/help/234067/how-to-prevent-caching-in-internet-explorerreference : http://lab.gamecodi.com/board/zboard.php?id=GAMECODILAB_Lecture&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=hit&desc=asc&no=34 반응형 공유하기 URL 복사카카오톡 공유페이스북 공유엑스 공유 게시글 관리 구독하기팀드모네 IT Blog 저작자표시 비영리 동일조건 '🏫 TECH > 🖼️ Front' 카테고리의 다른 글 [jQuery] how to set the text of a pre tag (0) 2018.10.13 [CSS] pre태그 줄바꿈 처리(스크롤 제거, 개행처리) (0) 2018.09.07 [jQuery] 오해없이 if문으로 조건문을 직관적으로 체크하는 방법 (0) 2018.08.06 [jQuery] 달력만들기, 두 번 클릭으로 구현되는 세상에서 가장 쉬운 달력 flatpickr (0) 2018.08.02 [CSS] 원큐에 중앙에 정렬하는 방법 (0) 2018.07.11 Contents 당신이 좋아할만한 콘텐츠 [jQuery] how to set the text of a pre tag 2018.10.13 [CSS] pre태그 줄바꿈 처리(스크롤 제거, 개행처리) 2018.09.07 [jQuery] 오해없이 if문으로 조건문을 직관적으로 체크하는 방법 2018.08.06 [jQuery] 달력만들기, 두 번 클릭으로 구현되는 세상에서 가장 쉬운 달력 flatpickr 2018.08.02 댓글 0 + 이전 댓글 더보기