I'm trying to force a page to cache. This to lighten the excessive use of the server and to terminate unnecessary bandwidth use. But I cant solve the problem. I came with the following, not working, solution:
header("Expires: ".gmdate( "D, d M Y H:i:s", time()+7200 )." GMT");
header("Cache-Control: public");
header("Cache-Control: min-fresh=7200");
header("Cache-Control: only-if-cached");
// caches the page for 2hours
based on HTTP/1.1
could someone help me ?...