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 }}
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 @@
### 등장 가능한 펫들
-
+
##
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)
}
}