From 76471ccc7b257c4c466223110f99195014ea2c24 Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Thu, 11 Apr 2024 22:30:25 +0900 Subject: [PATCH 1/3] =?UTF-8?q?docs:=20=EC=A0=81=EC=9A=A9=20=EC=98=88?= =?UTF-8?q?=EC=8B=9C=EB=A5=BC=20=EC=8B=A4=EC=A0=9C=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=98=88=EC=8B=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ead8b02..d5c30e1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@
- + docs/sample.svg @@ -59,7 +59,7 @@ ### 등장 가능한 펫들 -docs/pets.svg +docs/pets.svg ## From cfa1b78b45f3d69c7885e56c29b15ac7a3414adb Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 11 Apr 2024 22:40:33 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20github=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EB=A5=BC=20=EC=BA=90=EC=8B=9C?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../render/controller/AnimationController.kt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt b/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt index 96e8813..56afc4e 100644 --- a/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt +++ b/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt @@ -2,8 +2,6 @@ package org.gitanimals.render.controller import jakarta.servlet.http.HttpServletResponse import org.gitanimals.render.app.AnimationFacade -import org.springframework.http.HttpHeaders -import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind.annotation.RequestMapping @@ -16,8 +14,16 @@ class AnimationController( ) { @GetMapping(value = ["/{username}"], produces = ["image/svg+xml"]) - fun getSvgAnimation(@PathVariable("username") username: String, response: HttpServletResponse): String { - response.setHeader(HttpHeaders.CACHE_CONTROL, "max-age=1") + fun getSvgAnimation( + @PathVariable("username") username: String, + response: HttpServletResponse + ): String { + response.noCache() return animationFacade.getSvgAnimationByUsername(username) } + + fun HttpServletResponse.noCache(): HttpServletResponse { + this.setHeader("Cache-Control", "no-cache, no-store, must-revalidate") + return this + } } From edc6f10fffe565d23a190bec96a461b170da46cb Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Thu, 11 Apr 2024 22:30:25 +0900 Subject: [PATCH 3/3] =?UTF-8?q?docs:=20=EC=A0=81=EC=9A=A9=20=EC=98=88?= =?UTF-8?q?=EC=8B=9C=EB=A5=BC=20=EC=8B=A4=EC=A0=9C=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=98=88=EC=8B=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ead8b02..d5c30e1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@
- + docs/sample.svg @@ -59,7 +59,7 @@ ### 등장 가능한 펫들 -docs/pets.svg +docs/pets.svg ##