JResponse::allowCache(true) did the trick. If it helps anyone else,
here is the code that worked for me.
JResponse::allowCache(true);JResponse::setHeader('Pragma','public',true);JResponse::setHeader('Cache-Control','public',true);JResponse::setHeader('Expires',gmdate('D, d M Y H:i:s',time()+(60*60*5)).' GMT',true);
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
to
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.