The place to discuss how to make 23 work in special ways with the 23 api

Replies to GETs of data.js is Content-Type: text/plain

Th Clvr Mnky   October 28, 2012, 01:22 AM

I just noticed that calling .../script/data.js returns:

Content-Type: text/plain; charset=utf-8

Is this by design?

I actually don't know what it is supposed to be, given that no one agrees if this is supposed to be "text/javascript" or "application/javascript". "text/plain" seems wrong, even if it is utf-8 -- the bytes returned must be preserved exactly as-is.

I'm no web development nerd, though. Mostly curious if this is on purpose.

[Later]

Ah, I see. Mostly a browser compatibility issue. No one uses the "correct" MIME-type. In fact, setting the type might be completely unnecessary now.

 
Steffen Fagerström Christensen Team 23   October 28, 2012, 09:57 AM

I remember there being a decent reason back in 2006, probably some browser misbehaving. Should keep up back though, so this has been changed.

 




About 23

About 23
What is 23 and who's behind the service?
Just In
Discover the world from a different angle.
Here's a crop of the latest photos from the around the world.
Search
Search photos from users using 23
Help / Discussion
Get help or share your ideas to make 23 better
23 Blog / 23 on Twitter
Messages and observations from Team 23
Terms of use
What can 23 be used for and what isn't allowed
More services from 23
We also help people use photo sharing in their professional lives
RSS Feed
Subscribe to these photos in an RSS reader
  • Basque (ES)
  • Bulgarian (BG)
  • Chinese (CN)
  • Chinese (TW)
  • Danish (DK)
  • Dutch (NL)
  • English (US)
  • French (FR)
  • Galician (ES)
  • German (DE)
  • Italian (IT)
  • Norwegian (NO)
  • Polish (PL)
  • Portuguese (PT)
  • Russian (RU)
  • Spanish (ES)
  • Swedish (SE)

Popular photos right now