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

Add configs for TopoJSON files #34

Closed
alrra opened this issue Jul 25, 2014 · 2 comments
Closed

Add configs for TopoJSON files #34

alrra opened this issue Jul 25, 2014 · 2 comments

Comments

@alrra
Copy link
Member

alrra commented Jul 25, 2014

Specification: https://github.com/topojson/topojson-specification

File extension: .topojson
Media type: Couldn't find any information about the recommended media type. Maybe simply go with application/json (or with the same media type as GeoJSON, namely, application/vnd.geo+json)?

Cc: @calvinmetcalf, @mbostock

Things that need to be done:

  • set media type
  • set expires headers
  • ensure that TopoJSON files:
    • are served with the charset parameter that specifies that the character encoding of the documents is utf-8
    • are compressed (it's JSON, so it will compress quite nicely)
    • aren't served with all the HTTP headers intended only for HTML documents
  • other (which?).
@calvinmetcalf
Copy link

since it isn't spec compliment geojson don't use that one, application/json is likely a safe bet for the moment, but I wouldn't be surprised if at some point application/vnd.topo+json or similar came around

@alrra
Copy link
Member Author

alrra commented Jul 26, 2014

Thanks @calvinmetcalf!

@alrra alrra closed this as completed in 05fc924 Jul 26, 2014
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

2 participants