Actions
Css 캐싱 방지¶
css파일을 수정해도 사용자가 캐시 삭제를 하지 않으면
반영되지 않기 때문에 css파일을 강제로 재로딩 시켜줘야함.
방법1. 이미지1 참조
var link = '<link rel = "stylesheet" type = "text/css" href = "/webroot/scripts/widget.css?${=timestamp}">'; $("head"). append (link);
방법2. 이미지2참조
$('<link rel = "stylesheet" type = "text/css"href = "/webroot/scripts/widget.css?${=timestamp}"/>').appendTo('head');
방법3. 첨부파일 nocache.js와 이미지3참조
getFetchVersion('/webroot/scripts/widget.css');
김 미진이(가) 18일 전에 변경 · 1 revisions