gitweb: refactor If-Modified-Since handling