Open In App

HTTP headers | Alt-Svc

The HTTP headers Alt-Svc header is a response-type header it has been used to advertise alternative service. Which services can be defined by a protocol/host/port combination.

Syntax:



Alt-Svc: clear
Alt-Svc: <protocol-id>=<alt-authority>; ma=<max-age>; persist=1

Directives: This header accept five directives as mentioned above and described below:

Example:



To check this Alt-Svc in action go to Inspect Element -> Network check the request header for Alt-Svc like below, Alt-Svc is highlighted you can see.

Supported Browsers: The browsers compatible with HTTP headers Alt-Svc are listed below:

Article Tags :