Welcome Guest, Not a member yet? Register   Sign In
How can I remove all http-headers
#2

ok I have my solution

I just set the right headers in the controller
$this->output->set_header('Cache-Control: public');
$this->output->set_header('Pragma: cache');
$this->output->set_header('Expires: ' . gmdate( 'D, d M Y H:iConfused', time() + 120 ) . ' GMT');
and in nginx
fastcgi_ignore_headers Set-Cookie;

now php controls the cache fastcgi and browser or public caches Smile

Thank you (for CI and all the free stuff)
temi
Reply


Messages In This Thread
How can I remove all http-headers - by temi - 12-10-2017, 03:53 AM
RE: How can I remove all http-headers - by temi - 12-10-2017, 11:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB