diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-11 16:19:17 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-11 16:19:17 -0500 |
| commit | c2187ae96bf081aba31a965d0b58e5934a42a93f (patch) | |
| tree | 11d640724514590cfc7e458b4a88ddc3e7951ee9 /cmd/uploud/main.go | |
| parent | e0a74532d30ad2cd7c93ba688b3119a28c3ea28e (diff) | |
| download | x-c2187ae96bf081aba31a965d0b58e5934a42a93f.tar.xz x-c2187ae96bf081aba31a965d0b58e5934a42a93f.zip | |
cmd/stickers: be more clever
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/uploud/main.go')
| -rw-r--r-- | cmd/uploud/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/uploud/main.go b/cmd/uploud/main.go index 13d508c..2d990a1 100644 --- a/cmd/uploud/main.go +++ b/cmd/uploud/main.go @@ -26,7 +26,6 @@ import ( "github.com/gen2brain/webp" "golang.org/x/sync/errgroup" "within.website/x/internal" - "within.website/x/tigris" ) var ( @@ -135,8 +134,9 @@ func main() { ContentLength: aws.Int64(st.Size()), ChecksumSHA256: aws.String(shaSum), ContentMD5: aws.String(md5Sum), + CacheControl: aws.String("max-age=2592000,public"), }, - tigris.WithCreateObjectIfNotExists(), + //tigris.WithCreateObjectIfNotExists(), ) if err != nil { log.Fatal(err) |
