Skip to content

Commit 2a67141

Browse files
Use a more explicit cache-control directive (#38)
1 parent 1739b92 commit 2a67141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

handler/handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ func (c *Client) TranslatedQuery(rw http.ResponseWriter, req *http.Request) {
136136
rw.Header().Set("Content-Type", "application/json")
137137
rw.Header().Set("Access-Control-Allow-Origin", "*")
138138
// Prevent caching of result.
139-
rw.Header().Set("Cache-Control", "private, max-age=0, no-transform")
139+
// See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
140+
rw.Header().Set("Cache-Control", "no-store")
140141

141142
// Check whether the service is valid before all other steps to fail fast.
142143
ports, ok := static.Configs[service]

0 commit comments

Comments
 (0)