From 1a488175581304f1264fe46d74ac6e74776c156b Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Thu, 30 Mar 2023 15:32:58 +0200
Subject: [PATCH] Add query parameter to disable cache for s3

---
 caddy/config/conf.003.d/s3.serguzim.me.conf | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/caddy/config/conf.003.d/s3.serguzim.me.conf b/caddy/config/conf.003.d/s3.serguzim.me.conf
index 30d8b44..77e95c2 100644
--- a/caddy/config/conf.003.d/s3.serguzim.me.conf
+++ b/caddy/config/conf.003.d/s3.serguzim.me.conf
@@ -1,5 +1,12 @@
 s3.serguzim.me {
 	import default
+
+	@nocache {
+		query nocache=*
+	}
+	header @nocache "Cache-Control" "no-store, no-cache"
+	#header "Cache-Control" "no-store, no-cache"
+
 	reverse_proxy minio:9000
 }