Open In App

HTTP headers | Clear-Site-Data

The HTTP header Clear-Site-Header is a response-type header. This header is used in deleting the browsing data which is in the requesting website. These browsing data includes cache, cookies, storage and executionContents. It helps the web developers to have an improved level of control over data stored by the browser locally.

Syntax:



Clear-Site-Data: "cache"|"cookies"|"storage"|"executionContexts"|"*"

Note: The data to be deleted, directibves should be given within double quotes (” “). Multiple directives can be given at a time.

Directives: This header accepts four directives mentioned above and described below:



Examples:

Based on the directives mentioned, the corresponding type of data will be removed. To check the Clear-Site-Data go to the Inspect Element->Network click any visible name after that click the header tab if this header is used then it will be visible to you.

Supported Browsers: The browsers compatible with HTTP Clear-Site-Data headers are given below.

Article Tags :