Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/maven-release/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def digest(data):


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