I have the following code to send asynchronous HTTP request using sendBeacon method, var data = { name: 'test', uniqueId: Math.random() }; …