softonic / axios-retry

Axios plugin that intercepts failed requests and retries them whenever possible
Other
1.9k stars 167 forks source link

lastRequestTime is incorrect in 4.x but correct in 3.x #283

Closed gitSambhal closed 4 months ago

gitSambhal commented 4 months ago

lastRequestTime value is always the original request time in the version 4.x but it is correct in 3.x. Here could be the issue.

Version 4.x https://replit.com/@sambhal/axios-retry-issue-283

Output

{ lastRequestTime: 1721308860542 }
{ lastRequestTime: 1721308860542 }
{ lastRequestTime: 1721308860542 }

Version 3.x https://replit.com/@sambhal/axios-retry-issue-283-v3

Output

{ lastRequestTime: 1721308844286 }
{ lastRequestTime: 1721308845679 }
{ lastRequestTime: 1721308846359 }