Skip to content

Commit 32a0235

Browse files
authored
release: 0.0.6 (#5)
2 parents 721ce68 + 304aea8 commit 32a0235

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

โ€Ž.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ jobs:
8282
run: |
8383
sudo docker pull ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
8484
sudo docker ps -q --filter "expose=8080" | xargs sudo docker stop | xargs sudo docker rm
85-
sudo docker run -d -p 8080:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
85+
sudo docker run -d -p 8081:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}

โ€ŽREADME.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
์•„๋ž˜์˜ MARKDOWN ํ˜น์€ HTML ๋ฐฉ์‹์ค‘ ํ•˜๋‚˜๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋Š”๊ฒƒ์œผ๋กœ ์‰ฝ๊ฒŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ์–ด์š”.
3030

3131
```markdown
32-
[![gitanimals](http://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals)
32+
[![gitanimals](https://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals)
3333
```
3434

3535
```html
@@ -59,7 +59,7 @@
5959

6060
### ๋“ฑ์žฅ ๊ฐ€๋Šฅํ•œ ํŽซ๋“ค
6161

62-
<img src="docs/pets.svg"/>
62+
<img alt="docs/pets.svg" src="https://render.gitanimals.org/farms/devxb"/>
6363

6464
##
6565

โ€Žsrc/main/kotlin/org/gitanimals/render/controller/AnimationController.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package org.gitanimals.render.controller
22

3+
import jakarta.servlet.http.HttpServletResponse
34
import org.gitanimals.render.app.AnimationFacade
5+
import org.springframework.http.HttpHeaders
6+
import org.springframework.http.ResponseEntity
47
import org.springframework.web.bind.annotation.GetMapping
58
import org.springframework.web.bind.annotation.PathVariable
69
import org.springframework.web.bind.annotation.RequestMapping
@@ -13,7 +16,8 @@ class AnimationController(
1316
) {
1417

1518
@GetMapping(value = ["/{username}"], produces = ["image/svg+xml"])
16-
fun getSvgAnimation(@PathVariable("username") username: String): String {
19+
fun getSvgAnimation(@PathVariable("username") username: String, response: HttpServletResponse): String {
20+
response.setHeader(HttpHeaders.CACHE_CONTROL, "max-age=1")
1721
return animationFacade.getSvgAnimationByUsername(username)
1822
}
1923
}

0 commit comments

Comments
ย (0)