---
 roles/s3-mirror/files/s3.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/roles/s3-mirror/files/s3.sh b/roles/s3-mirror/files/s3.sh
index 70046d21f..c157b0cdb 100644
--- a/roles/s3-mirror/files/s3.sh
+++ b/roles/s3-mirror/files/s3.sh
@@ -93,8 +93,9 @@ excludes=(
 CMD1=( "${aws_sync[@]}" "${excludes[@]}" --exclude "*/repomd.xml" )
 
 # Next we run this command which syncs repomd.xml files.  Include must precede
-# the large set of excludes.
-CMD2=( "${aws_sync[@]}" --exclude "*" --include "*/repomd.xml" 
"${excludes[@]}" )
+# the large set of excludes.  Make sure that the 'max-age' isn't too large so
+# we know that we can start removing old data ASAP.
+CMD2=( "${aws_sync[@]}" --exclude "*" --include "*/repomd.xml" 
"${excludes[@]}" --cache-control max-age=300 )
 
 # Then we delete old RPMs and old metadata (but after invalidating caches).
 CMD3=( "${aws_sync[@]}" "${excludes[@]}" --delete )
-- 
2.25.1
_______________________________________________
infrastructure mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to