자바스크립트 js link, js 파일의 오래된 캐시 대책, 새로운 리소스 로딩해주는 방법
원본)
<script language="javascript" src="/resource/js/link.js"></script>
<script language="javascript" src="/resource/js/flash.js"></script>
<script language="javascript" src="/resource/js/Cookie.js"></script>
<script language="javascript" src="/resource/js/file.js"></script>
<script language="javascript" src="/resource/js/string.js"></script>
<script language="javascript" src="/resource/js/numeric.js"></script>
<script language="javascript" src="/resource/js/image.js"></script>
<script type="text/javascript" src="/resource/js/image_lightbox.js"></script>
<script type="text/javascript" src="/resource/js/minipop_sideview.js"></script>
수정본)
<script language="javascript" src="/resource/js/link.js"></script>
<script language="javascript" src="/resource/js/flash.js"></script>
<script language="javascript" src="/resource/js/Cookie.js"></script>
<script language="javascript" src="/resource/js/file.js"></script>
<script language="javascript" src="/resource/js/string.js?ver=1.1"></script>
<script language="javascript" src="/resource/js/numeric.js"></script>
<script language="javascript" src="/resource/js/image.js"></script>
<script type="text/javascript" src="/resource/js/image_lightbox.js"></script>
<script type="text/javascript" src="/resource/js/minipop_sideview.js"></script>
link되는 파일명의 뒤쪽에 파라미터 추가하듯이 수정해주면 돼요
?version1.1 등
새롭게 업데이트 되는경우
?version1.2 등으로 수정해서 사용하세요~
즐거운 시간 보내세요~
댓글 없음:
댓글 쓰기