Skip to content

Commit

Permalink
cloud storage側ではキャッシュしないようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
cateiru committed Oct 15, 2023
1 parent 3c85429 commit 0026feb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (c *CloudStorage) Write(ctx context.Context, path string, data io.Reader, c
writer := object.NewWriter(ctx)
defer writer.Close()
writer.ContentType = contentType
writer.CacheControl = "no-store" // CDN側でキャッシュするためCloud Storage側ではキャッシュしない

_, err = io.Copy(writer, data)
if err != nil {
Expand Down

0 comments on commit 0026feb

Please sign in to comment.