Skip to content
Snippets Groups Projects
Commit 514ced23 authored by benjamin's avatar benjamin
Browse files

added headders so the http request wouldnt cache

parent c16b1d4a
No related branches found
No related tags found
1 merge request!1added headders so the http request wouldnt cache
...@@ -28,8 +28,12 @@ type grpcWebResponse struct { ...@@ -28,8 +28,12 @@ type grpcWebResponse struct {
} }
func newGrpcWebResponse(resp http.ResponseWriter, isTextFormat bool) *grpcWebResponse { func newGrpcWebResponse(resp http.ResponseWriter, isTextFormat bool) *grpcWebResponse {
h := make(http.Header)
h.Set("Cache-Control", "no-store, must-revalidate")
g := &grpcWebResponse{ g := &grpcWebResponse{
headers: make(http.Header), headers: h,
wrapped: resp, wrapped: resp,
contentType: grpcWebContentType, contentType: grpcWebContentType,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment