An origin returns different product-search results for /search?lang=en and /search?lang=fr. A CloudFront behavior caches these responses but its cache policy excludes lang. Users sometimes receive results in the wrong language. What is the most direct configuration fix?

Published
  1. Increase the minimum TTL so language-specific responses stay cached longer under the same key.
  2. Include lang in the cache key through the cache policy and clear or expire the affected old cached responses.
  3. Include lang only in the response headers policy and leave the cache key unchanged.
  4. Forward lang only with an origin request policy while leaving it out of the cache key.

Comments — 0