implemented configurable keep-alive handling
fixed last modified detection