Last active
December 28, 2015 21:19
-
-
Save angelmartz/7563596 to your computer and use it in GitHub Desktop.
Eliminar cache, evitar botón atrás
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function removeCache() | |
{ | |
$this->output->set_header('Last-Modified:'.gmdate('D, d M Y H:i:s').'GMT'); | |
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate'); | |
$this->output->set_header('Cache-Control: post-check=0, pre-check=0',false); | |
$this->output->set_header('Pragma: no-cache'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment