Hey, Was wondering if anyone knows the correct way to set up a simple cache using the PHP headers.. Currently it is defaulting to no-cache and as it is a mobile site, we could really use the cache facility.. Any help gratefully received!
Had you actually bothered to RTFM you would have found this: // seconds, minutes, hours, days $expires = 60*60*24*14; header("Pragma: public"); header("Cache-Control: maxage=".$expires); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');