fix: use global --header for Tigris consistency on all rclone transactions (#564)

Signed-off-by: phernandez <paul@basicmachines.co>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Hernandez
2026-02-12 15:43:05 -06:00
committed by GitHub
parent f1a065bce3
commit b609c4e531
5 changed files with 26 additions and 16 deletions
@@ -28,12 +28,12 @@ console = Console()
MIN_RCLONE_VERSION_EMPTY_DIRS = (1, 64, 0)
# Tigris edge caching returns stale data for users outside the origin region (iad).
# These headers bypass edge cache and force reads/writes against the origin.
# --header is rclone's global flag that applies to ALL HTTP transactions (list, download,
# upload). This is critical because bisync starts with S3 ListObjectsV2, which is neither
# a download nor upload — so --header-download/--header-upload would miss list requests.
# See: https://www.tigrisdata.com/docs/objects/consistency/
TIGRIS_CONSISTENCY_HEADERS = [
"--header-download",
"X-Tigris-Consistent: true",
"--header-upload",
"--header",
"X-Tigris-Consistent: true",
]