Skip to content

Commit

Permalink
rest/users(tweak): no user by conn. 404 cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Jun 24, 2023
1 parent 43e8585 commit 1c759c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/rest/v3/routes/users/users.by-connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func (r *userConnectionRoute) Handler(ctx *rest.Ctx) rest.APIError {

uc, i := user.Connections.Get(connID)
if i == -1 {
ctx.Response.Header.Set("Cache-Control", "max-age=0")

return errors.ErrUnknownUserConnection()
}

Expand Down

0 comments on commit 1c759c9

Please sign in to comment.