A client approached me regarding improving their 'SEO' issue. Now, SEO is not something i have focussed on as a job,
however having run my own online businesses, i've had to dabble a bit and fix certain thing eg, adding meta tags ( made an auto generated
version lazy man sh%t
. So i said "Sure, let me take a quick look and see if its something someone within my network would be able to fix
then he said "No, my SEO told me to improve my site speed to improve my google analytcs bounce rates". And that birthed this article.
Codeigniter happens to be a very lightweight PHP MVC-ish framework, the beauty of CI is that it has a small footprint and low barrier of
entry for less experienced developers and experts alike, among other fantastic things, that can be found on their website https://codeigniter.com/docs .
In this article we will focus on object and database caching only.
$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");