EllisLab text mark
Advanced Search
     
Header max-age header not set
Posted: 07 November 2012 10:37 AM   [ Ignore ]
Joined: 2008-03-02
3 posts

I’m trying to get the browser to cache an image that I’ve served through CI. Chrome reports the max-age=0 for the following:

$this->output->set_header("Cache-Control: max-age=604800"); 

and max-age=604800 for the following.

header("Cache-Control: max-age=604800"); 

I’m using CI 2.1.2 w/ Apache2