0

I'm bilding a web site in PHP Platform. I got some info like an Expires or a Cache-Control Header will help to load web site faster. I do't know how to enable it.

pls tell me the procedure in step by step.

where to change the settings. how to do it and all

if you explain with an example that helps me better. Thank You.

user1844933
  • 3,179
  • 2
  • 22
  • 37

1 Answers1

-1
<?php
 Header("Cache-Control: must-revalidate");

 $offset = 60 * 60 * 24 * 3;
 $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
 Header($ExpStr);
?>
yantrakaar
  • 374
  • 2
  • 13