kolanos/kohana-captcha — Issue #18: Fix headers in ko 3.2 (for png only)
Author: phpclub
Created: 2011-10-30 09:44:09+00:00
State: open

/controller/captcha
public function action_index($group = 'default')
{
+ $this->response->headers('Content-Type' , 'image/png');
+ $this->response->headers('Cache-Control' , 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
+ $this->response->headers('Pragma' , 'no-cache');
+ $this->response->headers('Connection' , 'close');
Captcha::instance($group)->render(FALSE);
}