mapbox / owlviewer

A changeset browser for https://github.com/ppawel/openstreetmap-watch-list
9 stars 10 forks source link

Use regular JSON/CORS requests for browsers that support it #11

Open ppawel opened 11 years ago

ppawel commented 11 years ago

JSONP tile requests have a timestamp in them (see callback function name) and for that reason they are not cachable.

For browsers that support it (I guess that's anything other than IE?), regular JSON requests could be used. This may require adding CORS header(s) on OWL API server side.