From 73bd13a7cd06699017e894646dfffbc5b75ebf1d Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 16 Mar 2026 07:46:41 +0900 Subject: [PATCH] =?UTF-8?q?fix(tkpurchase):=20fetch=EC=97=90=20cache:no-st?= =?UTF-8?q?ore=20=EC=B6=94=EA=B0=80=20=E2=80=94=20=EB=B8=8C=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=EC=A0=80=20=EC=BA=90=EC=8B=9C=20=EC=99=84=EC=A0=84=20?= =?UTF-8?q?=EC=9A=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이전 응답이 브라우저에 캐시된 상태에서 서버 Cache-Control만으로는 기존 캐시를 무효화할 수 없음. fetch() 호출 시 cache:'no-store'로 브라우저가 항상 네트워크 요청하도록 강제. Co-Authored-By: Claude Opus 4.6 --- tkpurchase/web/accounts.html | 2 +- tkpurchase/web/daylabor.html | 2 +- tkpurchase/web/index.html | 2 +- tkpurchase/web/partner-history.html | 2 +- tkpurchase/web/partner-portal.html | 2 +- tkpurchase/web/partner.html | 2 +- tkpurchase/web/schedule.html | 2 +- tkpurchase/web/static/js/tkpurchase-core.js | 2 +- tkpurchase/web/workreport-summary.html | 2 +- tkpurchase/web/workreport.html | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tkpurchase/web/accounts.html b/tkpurchase/web/accounts.html index da673d1..06a5a8b 100644 --- a/tkpurchase/web/accounts.html +++ b/tkpurchase/web/accounts.html @@ -133,7 +133,7 @@ - + diff --git a/tkpurchase/web/daylabor.html b/tkpurchase/web/daylabor.html index f895d1f..7fcbbd8 100644 --- a/tkpurchase/web/daylabor.html +++ b/tkpurchase/web/daylabor.html @@ -148,7 +148,7 @@ - + diff --git a/tkpurchase/web/index.html b/tkpurchase/web/index.html index 10768e4..67082c7 100644 --- a/tkpurchase/web/index.html +++ b/tkpurchase/web/index.html @@ -88,7 +88,7 @@ - + diff --git a/tkpurchase/web/partner-history.html b/tkpurchase/web/partner-history.html index 92ee14c..d13443f 100644 --- a/tkpurchase/web/partner-history.html +++ b/tkpurchase/web/partner-history.html @@ -61,7 +61,7 @@
- + diff --git a/tkpurchase/web/partner-portal.html b/tkpurchase/web/partner-portal.html index 15f14df..ecebac8 100644 --- a/tkpurchase/web/partner-portal.html +++ b/tkpurchase/web/partner-portal.html @@ -81,7 +81,7 @@ - + diff --git a/tkpurchase/web/partner.html b/tkpurchase/web/partner.html index 6bbe396..8ea5251 100644 --- a/tkpurchase/web/partner.html +++ b/tkpurchase/web/partner.html @@ -294,7 +294,7 @@ - + diff --git a/tkpurchase/web/schedule.html b/tkpurchase/web/schedule.html index 139fe4f..b9dff1b 100644 --- a/tkpurchase/web/schedule.html +++ b/tkpurchase/web/schedule.html @@ -275,7 +275,7 @@ - + diff --git a/tkpurchase/web/static/js/tkpurchase-core.js b/tkpurchase/web/static/js/tkpurchase-core.js index be61d14..9bba7cf 100644 --- a/tkpurchase/web/static/js/tkpurchase-core.js +++ b/tkpurchase/web/static/js/tkpurchase-core.js @@ -40,7 +40,7 @@ async function api(path, opts = {}) { const token = getToken(); const headers = { 'Authorization': token ? `Bearer ${token}` : '', ...(opts.headers||{}) }; if (!(opts.body instanceof FormData)) headers['Content-Type'] = 'application/json'; - const res = await fetch(API_BASE + path, { ...opts, headers }); + const res = await fetch(API_BASE + path, { ...opts, headers, cache: 'no-store' }); if (res.status === 401) { _safeRedirect(); throw new Error('인증 만료'); } if (res.headers.get('content-type')?.includes('text/csv')) return res; const data = await res.json(); diff --git a/tkpurchase/web/workreport-summary.html b/tkpurchase/web/workreport-summary.html index eb95489..1a879fe 100644 --- a/tkpurchase/web/workreport-summary.html +++ b/tkpurchase/web/workreport-summary.html @@ -100,7 +100,7 @@ - + diff --git a/tkpurchase/web/workreport.html b/tkpurchase/web/workreport.html index 08f1056..f42a7ac 100644 --- a/tkpurchase/web/workreport.html +++ b/tkpurchase/web/workreport.html @@ -114,7 +114,7 @@ - +