aboutsummaryrefslogtreecommitdiff
path: root/cmd/uploud/main.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-11 16:19:17 -0500
committerXe Iaso <me@xeiaso.net>2025-01-11 16:19:17 -0500
commitc2187ae96bf081aba31a965d0b58e5934a42a93f (patch)
tree11d640724514590cfc7e458b4a88ddc3e7951ee9 /cmd/uploud/main.go
parente0a74532d30ad2cd7c93ba688b3119a28c3ea28e (diff)
downloadx-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.go4
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)