Postponed (maintainer needs more info)
Project:
CloudFront Purger
Version:
8.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2022 at 09:19 UTC
Updated:
7 Sep 2023 at 01:42 UTC
Jump to comment: Most recent
Comments
Comment #3
eyilmazMR opened.
Comment #4
kim.pepperI believe the paths are already taken into account.
I am open to other ideas about what the caller reference should be, but it might be worth reading the documentation first. https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_Invalidat...
Comment #5
eyilmazFrom the docs:
So if you send the same second another request, this is the case.
Comment #6
kim.pepperSo we could just use
microtime()?Comment #7
eyilmazThat would be an option, however it does not guarantee the CallerReference to be unique. In theory, if you have parallel invalidations running, one of them could fail even using microtime().
Comment #8
kim.pepperWhat about a random number then?
Comment #9
superrn commentedWe are seeing this often on a new project that we are deploying with this purger. Is there a proper fix for this?