Simplified checkUpToDate() and added getLastModified()