tomayac’s avatartomayac’s Twitter Archive—№ 11,047

  1. …in reply to @undefined
    @nhoizey @mathias @jeffposnick @addyosmani @rowan_m @iAlbMedina Correct. In some cases you can maybe leverage the content-type header, but this is of course only available once you have a response from the server. You could use it to figure out what to do with fetch()/XMLHttpRequest responses that have the empty string as a destination.