Retry-After header

The HTTP Retry-After response header indicates how long the user agent should wait before making a follow-up request. There are three main cases this header is used:

  • In a 503 Service Unavailable response, this indicates how long the service is expected to be unavailable.
  • In a 429 Too Many Requests response, this indicates how long to wait before making a new request.
  • In a redirect response, such as 301 Moved Permanently, this indicates the minimum time that the user agent is asked to wait before issuing the redirected request.
Header type Response header

Syntax

http
Retry-After: <http-date>
Retry-After: <delay-seconds>

Directives

<http-date>

A date after which to retry. See the Date header for more details on the HTTP date format.

<delay-seconds>

A non-negative decimal integer indicating the seconds to delay after the response is received.

Examples

Dealing with scheduled downtime

Support for the Retry-After header on both clients and servers is still inconsistent. However, some crawlers and spiders, like the Googlebot, honor the Retry-After header. It is useful to send it along with a 503 response, so that search engines will keep indexing your site when the downtime is over.

http
Retry-After: Wed, 21 Oct 2015 07:28:00 GMT
Retry-After: 120

Specifications

Specification
HTTP Semantics
# field.retry-after

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Retry-After
Chrome – Full support
Chrome 24 (Release date: 2013-01-10)
footnote Full support
Edge – Full support
Edge 18 (Release date: 2018-10-02)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 230260
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote Full support
Safari – No support
Safari
footnote No support
Chrome Android – Full support
Chrome Android 25 (Release date: 2013-02-27)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 230260
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – Full support
Samsung Internet 1.5 (Release date: 2013-09-25)
footnote Full support
WebView Android – Full support
WebView Android 4.4 (Release date: 2013-12-09)
footnote Full support
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

See also