Skip to content

Commit fd53eda

Browse files
authored
Bypass cached Maven reads during release checks (#6)
1 parent 22c6f44 commit fd53eda

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/maven-release/verify.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def digest(data):
2828

2929

3030
def read_url(url, allow_absent=False):
31+
if url.startswith(MAVEN + "/"):
32+
# The CDN can cache pre-upload 404s even with a no-cache request header.
33+
url += f"?mmd_verify={time.time_ns()}"
3134
try:
3235
request = Request(url, headers={"User-Agent": "MMD-Maven-Release/1.0", "Cache-Control": "no-cache"})
3336
with urlopen(request, timeout=30) as response:

0 commit comments

Comments
 (0)