﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1484932,caching + ob_gzhandler + firefox = bug,alec,till,"When in index.php is used ob_start('ob_gzhandler') I've problem in firefox (Opera works fine). When I'm clicking on messages list, sometimes (very often) firefox hangs for a while and then starts downloading some binary file. That's a pretty unfortunate problem.

I've made some investigation on it and found a solution. When RC sends ""304 Not Modified"" reply there's non-empty body on it (I don't know why nor from where it comes from). That is not in accordance with RFC. One solution is to clean output buffer (and turn of output buffering) before exit.


{{{
--- program/include/rcube_shared.inc.old	2008-02-25 15:14:06.000000000 +0100
+++ program/include/rcube_shared.inc	2008-03-27 11:23:28.104408435 +0100
@@ -262,7 +262,10 @@
     header(""Etag: $etag"");
   
   if ($iscached)
+    {
+    ob_end_clean();
     exit;
+    }
 }
}}}

",Feature Patches,closed,5,0.1.1,PHP backend,git-master,major,fixed,,
