From 90773081c2c0271d4d7ab03ea65a51bff6ab4043 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Mon, 26 Oct 2026 13:47:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A7=80=EC=97=AD=20=EB=82=A0=EC=94=A8?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80(/today=C2=B7/tomorrow)=EB=8F=84?= =?UTF-8?q?=20no-store=20=E2=80=94=20no-cache=20=EB=A9=B4=20=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC=20=ED=81=AC=EB=A1=AC=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=20=EC=97=B0=20=ED=83=AD=EC=9D=B4=20=EC=98=88?= =?UTF-8?q?=EC=A0=84=20HTML=20=EB=A1=9C=20=EC=A7=80=EC=9B=8C=EC=A7=84=20?= =?UTF-8?q?=EB=B9=8C=EB=93=9C=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20=EB=B6=88?= =?UTF-8?q?=EB=9F=AC=20'=EB=82=A0=EC=94=A8=20=EB=B6=88=EB=9F=AC=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EC=A4=91'=EC=97=90=EC=84=9C=20=EB=A9=88=EC=B6=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/router/v1/seo/seo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/router/v1/seo/seo.py b/backend/router/v1/seo/seo.py index 1a0ccc8..d7d12a3 100644 --- a/backend/router/v1/seo/seo.py +++ b/backend/router/v1/seo/seo.py @@ -14,7 +14,7 @@ async def get_today_page(sido: str = Path(..., pattern=_SLUG), place: str = Path err, html = await service.page(f"today/{sido}/{place}") if err is not ErrorType.SUCCESS: return HTMLResponse("not found", status_code=404) - return HTMLResponse(html, headers={"Cache-Control": "no-cache"}) + return HTMLResponse(html, headers={"Cache-Control": "no-store"}) @router.get("/today/{sido}/{place}/{gu}", response_class=HTMLResponse, summary="구로 나뉜 시의 구 페이지 (/today/gyeonggi/seongnam/bundang)") @@ -22,7 +22,7 @@ async def get_today_gu_page(sido: str = Path(..., pattern=_SLUG), place: str = P err, html = await service.page(f"today/{sido}/{place}/{gu}") if err is not ErrorType.SUCCESS: return HTMLResponse("not found", status_code=404) - return HTMLResponse(html, headers={"Cache-Control": "no-cache"}) + return HTMLResponse(html, headers={"Cache-Control": "no-store"}) @router.get("/tomorrow/{sido}/{place}", response_class=HTMLResponse, summary="지역 내일 날씨 페이지: 정적 HTML 에 내일 예보를 채운다 (nginx 가 /tomorrow/... 를 넘김)") @@ -30,7 +30,7 @@ async def get_tomorrow_page(sido: str = Path(..., pattern=_SLUG), place: str = P err, html = await service.page(f"tomorrow/{sido}/{place}") if err is not ErrorType.SUCCESS: return HTMLResponse("not found", status_code=404) - return HTMLResponse(html, headers={"Cache-Control": "no-cache"}) + return HTMLResponse(html, headers={"Cache-Control": "no-store"}) @router.get("/tomorrow/{sido}/{place}/{gu}", response_class=HTMLResponse, summary="구로 나뉜 시의 구 내일 날씨 페이지") @@ -38,4 +38,4 @@ async def get_tomorrow_gu_page(sido: str = Path(..., pattern=_SLUG), place: str err, html = await service.page(f"tomorrow/{sido}/{place}/{gu}") if err is not ErrorType.SUCCESS: return HTMLResponse("not found", status_code=404) - return HTMLResponse(html, headers={"Cache-Control": "no-cache"}) + return HTMLResponse(html, headers={"Cache-Control": "no-store"})