title: How can I verify that a file exists on another domain using Javascript
body: <p>I upload files to an S3 bucket using Javascript and want to verify, after the upload , that the file is where it should be.</p>
  
  <p>Assuming I know the exact URL of the file (for example: <a href="https://mybucket.s3.amazon.com/myfile.png" rel="nofollow">https://mybucket.s3.amazon.com/myfile.png</a>) is there a way for me to "ping" the file, just to make sure it is there?</p>
  
  <p>Take into account this is cross domain as the JS may be running anywhere on the web, not just on my website.</p>
  
  <p>Important notes: </p>
  
  <ol>
  <li>I can't simply load the image (if it is an image), because that will force the browser to download the whole file - I only want to "ping" it, to make sure it is there... not download a 5MB file, if you catch my drift.</li>
  <li>It isn't necessarily an image.</li>
  </ol>
  
  <p>Thanks</p>