Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the proper mime type for serving a topojson file? #11

Closed
benbalter opened this issue Mar 8, 2017 · 4 comments
Closed

What's the proper mime type for serving a topojson file? #11

benbalter opened this issue Mar 8, 2017 · 4 comments

Comments

@benbalter
Copy link

Should it be application/json or application/geo+json (or something else)?

@scardine
Copy link

scardine commented Mar 8, 2017

The file format is valid JSON, so application/json is not incorrect. I would use that unless your application needs to differentiate between other JSON-based data formats at the request level.

@mbostock
Copy link
Member

mbostock commented Mar 8, 2017

I recommend application/json until there is a more specific alternative that is standardized (such as application/topo+json, but I’m not familiar with the standardization process).

@mbostock mbostock closed this as completed Mar 8, 2017
@jseppi
Copy link

jseppi commented Mar 8, 2017

Sean Gillies over at Mapbox spearheaded the application/geo+json effort (ref: RFC7946), so if you are interested in heading down that road you might want to talk to him. As a casual observer, it seemed like quite an arduous process.

@benbalter
Copy link
Author

🤘. We're going with application/json for GitHub Pages, but wanted to check in to be sure (because since the RFC, geojson is now application/geo+json). Thanks for the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants