These adjustments prevent the api from being requested twice for querying the configured javascript. Currently, when using the gdpr query parameter with the accept-all value, an empty cache entry may be generated on the server side due to the duplicate call and thus no tracking code is downloaded. By adjusting the call conditions in the javascript, a mistakenly triggered api call is avoided and as far as I can see, the tracking javascript code is fetched correctly.
These adjustments prevent the api from being requested twice for querying the configured javascript. Currently, when using the gdpr query parameter with the accept-all value, an empty cache entry may be generated on the server side due to the duplicate call and thus no tracking code is downloaded. By adjusting the call conditions in the javascript, a mistakenly triggered api call is avoided and as far as I can see, the tracking javascript code is fetched correctly.