Welcome Guest, Not a member yet? Register   Sign In
undesired caching
#5

[eluser]skunkbad[/eluser]
Well, regardless of how well received the cached version of the pages might be, I quickly fixed the caching issue by adding the following to the top of each controller:

Code:
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");

I think my preference to put this in each controller warrants the use of some sort of system wide hook, but I haven't got that far yet.


Messages In This Thread
undesired caching - by El Forum - 05-18-2009, 12:08 PM
undesired caching - by El Forum - 05-18-2009, 12:15 PM
undesired caching - by El Forum - 05-18-2009, 12:19 PM
undesired caching - by El Forum - 05-18-2009, 12:27 PM
undesired caching - by El Forum - 05-18-2009, 08:57 PM
undesired caching - by El Forum - 05-18-2009, 11:35 PM
undesired caching - by El Forum - 05-19-2009, 02:44 AM
undesired caching - by El Forum - 05-19-2009, 11:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB