현재 웹페이지를 다시 읽어오는 것이다.

일반적인 다시 읽기
window.location.reload();
이렇게 하면 컴퓨터의 캐쉬에서 우선 파일을 찾아봅니다. 없으면 서버에서 받아옵니다.


적극적인 다시 읽기
window.location.reload(true);
true 라는 파라미터를 입력하면, 무조건 서버에서 직접 파일을 가져 오게 됩니다. 캐쉬는 완전히 무시됩니다.


소극적인 다시 읽기
history.go(0);
이렇게 하면, 캐쉬에서 현재 페이지의 파일들을 항상 우선적으로 찾습니다.


출처 : http://neouser.tistory.com/tag/reload

크리에이티브 커먼즈 라이센스
Creative Commons License
2009/03/26 10:21 2009/03/26 10:21
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://haroc.haroc.net/tc/rss/response/318

트랙백 주소 :: http://haroc.haroc.net/tc/trackback/318

트랙백 RSS :: http://haroc.haroc.net/tc/rss/trackback/318

댓글을 달아 주세요

댓글 RSS 주소 : http://haroc.haroc.net/tc/rss/comment/318
[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다