• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set_header not working

#1
Hi All,

CodeIgniter 3.

In all of my pages (responses), the expires header is set to Thu, 19 Nov 1981 08:52:00 GMT, so I added this to my controller:

Code:
$this->output->set_header("Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT");

But I keep getting the same value. Nothing changes.

What am I doing wrong?

Thank you.
Reply


Messages In This Thread
set_header not working - by edo - 03-14-2017, 07:59 AM
RE: set_header not working - by iz_no_good - 03-14-2017, 11:09 AM
RE: set_header not working - by edo - 03-14-2017, 03:52 PM
RE: set_header not working - by skunkbad - 03-14-2017, 08:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.