I have a website where I update content about once a month. When I check the header fields of the HTTP request, I get the following output:
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
My question is that, given the frequency with which I update the content, I am thinking of manually setting these fields to enable caching of the site. I am using php header (); team for this.
Therefore, my question is: what should the header fields of the HTTP headers be set for expiration, cache control and pragma? Also, should I set other fields in addition to these?
source
share