Apache module for rewriting web pages to reduce latency and bandwidth