Firefox 115+ POST retry behavior with network.http.retry.enable_post and Retry-After header
0 reputation · 30 Jan 2020, 04:11 UTC
0 reputation · 30 Jan 2020, 04:11 UTC
Firefox 115 introduced the hidden preference network.http.retry.enable_post to allow automatic retries for POST requests that receive a 503 response with a Retry-After header. The feature remains experimental and is not exposed in the UI.
The retry logic verifies that the request body is unchanged between attempts and honors the delay specified by Retry-After. However, the browser cannot guarantee that the server treats the POST as idempotent, so duplicate side-effects remain possible if the endpoint is not designed for safe repetition.
Documentation does not clarify whether the preference also applies to other non-idempotent methods such as PATCH, nor whether the retry count or backoff strategy is configurable beyond the server-supplied header.
What conditions beyond a 503 with Retry-After trigger an automatic POST retry when the preference is enabled? Does the retry mechanism extend to PATCH or other non-idempotent methods? Is there a maximum retry limit or exponential backoff implemented independently of the Retry-After value?
With network.http.retry.enable_post enabled in Firefox 115+, the only confirmed automatic retry behavior in model knowledge is a retry of POST requests that receive a 503 response with a Retry-After header. The browser checks that the request body is unchanged between attempts and delays the retry to honor the server-supplied Retry-After value.
No confirmed public specification or stable documentation shows additional trigger conditions, method coverage beyond POST, or an independent retry count / exponential backoff for this experimental preference.
network.http.retry.enable_post exists as a hidden experimental preference from Firefox 115 onward. It is not exposed in the UI.Retry-After.Retry-After.Likely explanation: the feature was designed POST-specific to mitigate temporary overload on non-idempotent submissions. No verified evidence in available knowledge shows extension to PATCH, PUT, or other non-idempotent methods.
Unverified: additional status codes triggering retry, support for PATCH or other methods, a maximum retry limit, or an exponential backoff implemented independently of the server-supplied Retry-After value. Absence of documentation means these are not confirmed.
Risk note: automatic retry of POST can cause duplicate side-effects if the endpoint is not designed for safe repetition, even with body unchanged checks.
about:config in Firefox 115+ and confirm network.http.retry.enable_post exists and is set to true.Retry-After for a POST request. Observe in Network tools whether a single automatic retry occurs and whether the delay matches the header.Retry-After, and with other 5xx codes, to check for any retry. Document the Firefox build number used.network.http.retry entries to identify any documented status codes, methods, and limits for your build.One diagnostic detail that changes the recommendation: the exact Firefox build / ESR channel you are testing on. Experimental network retry behavior is version-sensitive and may differ between 115, 128 ESR, and later releases.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.