web proxy + Opera + short files problem

There was a problem on my webpage using Web Proxy on RB750G with RouterOS 4.11 - the CSS file (generated by PHP) was not loaded in Opera browser (I’ve tried 10.61 and 10.00). I’ve spent few hours to discover the reason, here is essential demo:

First file is still loading, time is running without any result - proxy is holding connection and waiting for.. I don’t know what:
short.png
Here is simple source of this file:

<?php
echo ".";
?>

The second file is working fine, because HTTP header Content-Length is set:

<?php
header("Content-Length: 1");
echo ".";
?>

The problem is that PHP files usually don’t set this header (it is not so simple). Problem is appearing only when file is very short - less than 4 KiB if gzip compression is disabled (it is more complicated when the compression is enabled) - that’s why almost every web page is working fine.

I don’t know if it is a bug in RouterOS or Opera or webhosting server:

  • everything is fine in Opera when I use no proxy or Squid proxy;
  • everything is fine with Mikrotik proxy when I use Firefox;
  • everything is fine when I put these files on my local web server.

Does somebody know?