Apache logs contains “\x16\x03\x01” when accessing site via HTTPS

Today setting up SSL for a Apache HTTP webserver I run into issue, when browser shows that site is not accessible. At first I thought that SSL (443) port is not open, but looking in the Apache log file I saw this: 192.168.98.169 – – [24/May/2010:12:01:45 +0300] “\x16\x03\x01” 200 12332 “-” “-” The place where …

How big HTML images / CSS / JS / png / etc. should be to fit network packet (MTU) efficiently

List of little things that will make your website much faster. Not every webmaster knows, that 1 extra byte in jpg image, can cause 100% speed reduction / penalty for your website visitor. When you learn that MTU for Ethernet is 1500 bytes with actual data / payload size of 1460 bytes, you can calculate …

HTTP POST must be encoded and windows.location is encoded

When using JavaScript window.location in your code, be aware, that window.location is encoded using JavaScript escape function. It is not always obvious because characters, that get encoded / decoded using escape() / unescape() is rare in urls. Use the following syntax to get human readable url: unescape(window.location) URL: http://example.com/test url/ window.location: http://example.com/test%20url/ unescape(window.location): http://example.com/test url/ …