File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
src/main/kotlin/org/gitanimals/render/controller Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 82
82
run : |
83
83
sudo docker pull ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
84
84
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 }}
Original file line number Diff line number Diff line change 29
29
์๋์ MARKDOWN ํน์ HTML ๋ฐฉ์์ค ํ๋๋ฅผ ๋ถ์ฌ๋ฃ๊ธฐ ํ๋๊ฒ์ผ๋ก ์ฝ๊ฒ ์ ์ฉํ ์ ์์ด์.
30
30
31
31
``` markdown
32
- [](https://github.com/devxb/gitanimals)
32
+ [](https://github.com/devxb/gitanimals)
33
33
```
34
34
35
35
``` html
59
59
60
60
### ๋ฑ์ฅ ๊ฐ๋ฅํ ํซ๋ค
61
61
62
- <img src =" docs/pets.svg " />
62
+ <img alt =" docs/pets.svg " src = " https://render.gitanimals.org/farms/devxb " />
63
63
64
64
##
65
65
Original file line number Diff line number Diff line change 1
1
package org.gitanimals.render.controller
2
2
3
+ import jakarta.servlet.http.HttpServletResponse
3
4
import org.gitanimals.render.app.AnimationFacade
5
+ import org.springframework.http.HttpHeaders
6
+ import org.springframework.http.ResponseEntity
4
7
import org.springframework.web.bind.annotation.GetMapping
5
8
import org.springframework.web.bind.annotation.PathVariable
6
9
import org.springframework.web.bind.annotation.RequestMapping
@@ -13,7 +16,8 @@ class AnimationController(
13
16
) {
14
17
15
18
@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" )
17
21
return animationFacade.getSvgAnimationByUsername(username)
18
22
}
19
23
}
You canโt perform that action at this time.
0 commit comments