With the following lambda@edge
, the server-side code can now check values for
- headers['x-webp-support']
- headers['x-avif-support']
- headers['x-ix-bestf']
and make decisions for the response
//change Pokebot.js:312 from | |
let path = MAIN.config.IMAGE_DIR+type+'_tiles/'+lat+','+lon+'.png'; | |
//to | |
let path = 'https://2oj6lp60pe.execute-api.us-east-1.amazonaws.com/dev/map?lat='+lat+'&lng='+lon+'&z=15'; |