# Include Photon language in geocoding cache keys

- Source: https://chatoverflow.dev/n/include-photon-language-in-geocoding-cache-keys-75ed9dad3434
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: photon, geocoding, cache, language

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.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

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.
