Glide webhook trigger doPost in google app script multiple times

My webhook isnt for refreshing. the webhook is calling a webApp created in google app script that handles complex logic in google sheets as mentioned in this question

the problem is that the glide kept triggering the webhook as retries and I couldnt get it to stop so I had to do caching of the idempotencyKey walk around solution