PHP using session_cache_limiter() and session_cache_expire() or multiple header()

leradis

New Member
I want my PHP pages to be cached. To allow cache I use:\[code\]session_cache_limiter('private');session_cache_expire(180);session_start();\[/code\]Since I'm only using sessions for these cache headers, should I just drop these 3 line and replace them with (I'm never using $_SESSION):\[code\]header('Expires: <some GMT date>');header('Cache-Control: private, max-age=<some GMT date in the future>, pre-check=<some GMT date in the future>');header('Last-Modified: <some GMT date>');\[/code\]
 
Back
Top