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"})