Changed API for future binary compatibility
Added If-Modified-Since and Last-Modified headers support