w3c / beacon

Beacon
https://w3c.github.io/beacon/
Other
46 stars 22 forks source link

When can Beacon support the GET method? #64

Closed berwin closed 5 years ago

berwin commented 5 years ago

Currently, the data reporting behavior is the way to use new Image().src = 'xxx?a=b', so our company's data center only supports the parameters passed by the GET method, but currently Beacon only supports the POST method, so I can't use Beacon.

yoavweiss commented 5 years ago

That use-case is tackled by the fetch() API and its keepalive flag. You should use that instead of beacon.

berwin commented 5 years ago

Hahaha, I see. thank you~