Skip to content

Avoid 302 redirects on each calls with Maven repository #14842

@apupier

Description

@apupier

Code improvement description

for instance:

2026-04-16T07:02:01.2654533Z updater | 2026/04/16 07:02:01 INFO <job_1325771740> Checking if eu.maveniverse.maven.mima.runtime:standalone-static 2.4.42 needs updating
2026-04-16T07:02:01.4365377Z   proxy | 2026/04/16 07:02:01 [414] GET https://repo1.maven.org:443/maven2/org/apache/apache/37/apache-37.pom
2026-04-16T07:02:01.4366357Z 2026/04/16 07:02:01 [414] 200 https://repo1.maven.org:443/maven2/org/apache/apache/37/apache-37.pom (cached)
2026-04-16T07:02:01.5534577Z   proxy | 2026/04/16 07:02:01 [416] GET https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static/maven-metadata.xml
2026-04-16T07:02:01.6357334Z   proxy | 2026/04/16 07:02:01 [416] 200 https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static/maven-metadata.xml
2026-04-16T07:02:01.7343554Z   proxy | 2026/04/16 07:02:01 [418] GET https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static
2026-04-16T07:02:01.8654095Z   proxy | 2026/04/16 07:02:01 [418] 302 https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static
2026-04-16T07:02:01.9603293Z   proxy | 2026/04/16 07:02:01 [420] GET https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static/
2026-04-16T07:02:01.9992668Z   proxy | 2026/04/16 07:02:01 [420] 200 https://repo1.maven.org:443/maven2/eu/maveniverse/maven/mima/runtime/standalone-static/

it happens for all of the artifacts. From manual check on a dozens, it is always a redirect from the same url to another one with just the / appended. it takes between 100 and 350ms.

If I search for the 302 https, I 've got around 800 calls, so it means it can save between 1'20" and 4'40" for my 1 hour dependabot build if we can avoid this redirect.

it will also reduce the log size.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions