Skip to content

Commit 3b78a61

Browse files
committed
refactor: update Cache-Control header for schedule and group rank info handlers
1 parent c2dea80 commit 3b78a61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/handler/group_rank_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414

1515
func GroupRankInfoHandler(c iris.Context) {
1616
if GroupRankInfoStatic {
17-
c.Header("Cache-Control", "no-cache")
17+
c.Header("Cache-Control", "public, max-age=60")
1818
c.ContentType("application/json")
1919
c.Write(static.GroupRankInfoBytes)
2020
return

internal/handler/schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414

1515
func ScheduleHandler(c iris.Context) {
1616
if ScheduleStatic {
17-
c.Header("Cache-Control", "no-cache")
17+
c.Header("Cache-Control", "public, max-age=60")
1818
c.ContentType("application/json")
1919
c.Write(static.ScheduleBytes)
2020
return

0 commit comments

Comments
 (0)