diff --git a/public_html/doc/map.php b/public_html/doc/map.php index fa0ade3..a83f832 100644 --- a/public_html/doc/map.php +++ b/public_html/doc/map.php @@ -2510,11 +2510,31 @@ document.addEventListener('DOMContentLoaded', () => { }); async function forceRefresh() { - if ('caches' in window) { - const keys = await caches.keys(); - await Promise.all(keys.map(key => caches.delete(key))); - } - window.location.reload(); + const cssFiles = [ + 'assets/css/mapMAPCSS.css', + 'assets/css/main.css', + 'assets/css/leftside-modal.css' + ]; + + // CSS 강제 새로고침 + cssFiles.forEach(file => { + const link = document.querySelector(`link[href^="${file}"]`); + if (link) { + const href = link.href.split('?')[0]; + link.href = href + '?view=map&_=' + new Date().getTime(); + } + }); + + // 브라우저 캐시 삭제 + if ('caches' in window) { + const keys = await caches.keys(); + await Promise.all(keys.map(key => caches.delete(key))); + } + + // 페이지 새로고침 + const url = new URL(window.location.href); + url.searchParams.set('view', 'map'); // view=map 유지 + window.location.href = url.toString(); } $('.point-overlay').on(