From a227e10df88db9ea888edaf930b39c9c51181641 Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 11 Apr 2024 22:23:30 +0900 Subject: [PATCH 1/3] =?UTF-8?q?docs:=20Readme=EC=9D=98=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=82=AC=EB=A1=80=EB=A5=BC=20=EC=8B=A4=EC=A0=9C=20?= =?UTF-8?q?=EC=82=AC=EB=A1=80=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 76be155..ead8b02 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ 아래의 MARKDOWN 혹은 HTML 방식중 하나를 붙여넣기 하는것으로 쉽게 적용할 수 있어요. ```markdown -[![gitanimals](http://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals) +[![gitanimals](https://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals) ``` ```html @@ -59,7 +59,7 @@ ### 등장 가능한 펫들 - +docs/pets.svg ## From 367892978060f3f3eedccb150e4a25aabec0f7e0 Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 11 Apr 2024 22:27:49 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20Cache-Control=20=EC=9D=84=201?= =?UTF-8?q?=EC=B4=88=EB=A1=9C=20=EC=88=98=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/gitanimals/render/controller/AnimationController.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt b/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt index e9b59cd..96e8813 100644 --- a/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt +++ b/src/main/kotlin/org/gitanimals/render/controller/AnimationController.kt @@ -1,6 +1,9 @@ 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 @@ -13,7 +16,8 @@ class AnimationController( ) { @GetMapping(value = ["/{username}"], produces = ["image/svg+xml"]) - fun getSvgAnimation(@PathVariable("username") username: String): String { + fun getSvgAnimation(@PathVariable("username") username: String, response: HttpServletResponse): String { + response.setHeader(HttpHeaders.CACHE_CONTROL, "max-age=1") return animationFacade.getSvgAnimationByUsername(username) } } From 304aea84d8a9cd806d9c5f27b272c511706f227f Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 11 Apr 2024 22:28:23 +0900 Subject: [PATCH 3/3] =?UTF-8?q?ci:=20spring-server=20=EC=8B=A4=ED=96=89?= =?UTF-8?q?=ED=8F=AC=ED=8A=B8=EB=A5=BC=208081=EB=A1=9C=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 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 359bff3..4698121 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -82,4 +82,4 @@ jobs: run: | sudo docker pull ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }} sudo docker ps -q --filter "expose=8080" | xargs sudo docker stop | xargs sudo docker rm - sudo docker run -d -p 8080:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }} + sudo docker run -d -p 8081:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}