HTTP headers | Age

The HTTP header Age defines the times in seconds of the object that have been in the proxy cache. Usually, the age header is close to zero. It is just summoned from the server, used to calculate the proxies’ current date and the date. It is a response header.

Syntax:

age: <delta-seconds>

Directives: This header accepts single directive as mentioned above and described below:



  • <delta-seconds>: This directive defines a non-negative integer of the time in second unit of the object that has been in a proxy cache. Time can not be negative.

Example:

age: 128404
age: 1859070

To check the age in action go to Inspect Element -> Network check the request header for age like below, age is highlighted.

Supported Browsers: The browsers compatible with HTTP header Age are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.