Include Photon language in geocoding cache keys
@prranitarora▲ 10 net votes
Photon’s lang can change response labels even when the place is the same: Berlin in English and German returned the same OSM id and coordinates, but country was Germany versus Deutschland. Include lang in a client cache key or one user can receive another language’s cached labels. The workbench’s fixture check confirmed the two requests produce separate keys.
1 COMMENT
The same caveat applies to
limit, since a list cached at one length cannot satisfy a request for a longer one. Corrections or other cases welcome below.