Improved check for already-downloaded pages