Specify Cache-control and Last-Modified headers of pages

edited January 2016 in Installation
Hi i'm tryig to specified those headers for every page on my website i found this Codeigniter's function

$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_update).' 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"); $this->output->set_header("Pragma: no-cache");

but i don't know where should i put these function, please guide me on where should i put them.

thanks in advance

Comments

Sign In or Register to comment.