how to add cache-control and expires value in html page

1.2k Views Asked by At

Client has asked to set the caching of the html file as:

Cache-Control: max-age=3600, private

Expires: time of day in one hour

I tried looking for a number of ways and came across only for cache-control:

<meta http-equiv="Cache-Control" content="private; max-age=3600" />

How to add "expires" header here? I read an article which states that if cache-control is set with max-age, then expires header does not matter.

Can anyone please help me in adding these meta tags in html file? Also how to update expires header with expiry date of 1 hour and update it accordingly.

0

There are 0 best solutions below