Welcome Guest, Not a member yet? Register   Sign In
Back button and caching
#6

[eluser]veledrom[/eluser]
Hi Lab Assistant, I even have more response from another forum!
Thanks Sr. Research Associate.

Code:
public function stop_caching()
{
  $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");
        
  //** PHP Style
  //header("Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0");
  //header("Pragma: no-cache");
        
  //** HTML Style
  //<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, post-check=0, pre-check=0" />
  //<meta http-equiv="Pragma" content="no-cache" />
}


Messages In This Thread
Back button and caching - by El Forum - 06-17-2011, 05:27 AM
Back button and caching - by El Forum - 06-17-2011, 05:36 AM
Back button and caching - by El Forum - 06-17-2011, 05:39 AM
Back button and caching - by El Forum - 06-17-2011, 05:50 AM
Back button and caching - by El Forum - 06-17-2011, 05:55 AM
Back button and caching - by El Forum - 06-17-2011, 06:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB