@microsoft/1ds-post-js 4.4.0-nightlybeta3.2602-27 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2602-27.gbl.js → ms.post-4.4.1.gbl.js} +137 -130
  2. package/bundle/es5/ms.post-4.4.1.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.4.1.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.4.1.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.4.1.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2602-27.js → ms.post-4.4.1.js} +137 -130
  7. package/bundle/es5/ms.post-4.4.1.js.map +1 -0
  8. package/bundle/es5/ms.post-4.4.1.min.js +7 -0
  9. package/bundle/es5/ms.post-4.4.1.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +136 -129
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +136 -129
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +134 -127
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +2 -2
  27. package/dist-es5/EventBatch.js.map +1 -1
  28. package/dist-es5/HttpManager.js +39 -33
  29. package/dist-es5/HttpManager.js.map +1 -1
  30. package/dist-es5/Index.js +1 -1
  31. package/dist-es5/InternalConstants.js +1 -1
  32. package/dist-es5/KillSwitch.js +9 -8
  33. package/dist-es5/KillSwitch.js.map +1 -1
  34. package/dist-es5/PostChannel.js +3 -3
  35. package/dist-es5/PostChannel.js.map +1 -1
  36. package/dist-es5/RetryPolicy.js +1 -1
  37. package/dist-es5/Serializer.js +2 -2
  38. package/dist-es5/Serializer.js.map +1 -1
  39. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  40. package/dist-es5/__DynamicConstants.js +1 -1
  41. package/dist-es5/typings/XDomainRequest.js +1 -1
  42. package/package.json +64 -67
  43. package/types/1ds-post-js.d.ts +18 -18
  44. package/types/1ds-post-js.namespaced.d.ts +39 -3
  45. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  46. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.gbl.min.js +0 -7
  47. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  48. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.integrity.json +0 -46
  49. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.js.map +0 -1
  50. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.min.js +0 -7
  51. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-27.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK POST plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK POST plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK POST plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK POST plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -8,7 +8,7 @@
8
8
  * @author Nev Wylie (newylie)
9
9
  * @copyright Microsoft 2020
10
10
  */
11
- import { isNullOrUndefined, isValueAssigned } from "@microsoft/1ds-core-js";
11
+ import { isNullOrUndefined, isValueAssigned } from "@microsoft/applicationinsights-core-js";
12
12
  import { STR_EMPTY, STR_MSFPC } from "./InternalConstants";
13
13
  import { _DYN_CONCAT, _DYN_COUNT, _DYN_EVENTS, _DYN_I_KEY, _DYN_LENGTH, _DYN_PUSH, _DYN_SPLIT } from "./__DynamicConstants";
14
14
  function _getEventMsfpc(theEvent) {
@@ -1 +1 @@
1
- {"version":3,"file":"EventBatch.js.map","sources":["EventBatch.js"],"sourcesContent":["/**\r\n* EventBatch.ts\r\n* @author Nev Wylie (newylie)\r\n* @copyright Microsoft 2020\r\n*/\r\nimport { isNullOrUndefined, isValueAssigned } from \"@microsoft/1ds-core-js\";\r\nimport { STR_EMPTY, STR_MSFPC } from \"./InternalConstants\";\r\nimport { _DYN_CONCAT, _DYN_COUNT, _DYN_EVENTS, _DYN_I_KEY, _DYN_LENGTH, _DYN_PUSH, _DYN_SPLIT } from \"./__DynamicConstants\";\r\nfunction _getEventMsfpc(theEvent) {\r\n var intWeb = ((theEvent.ext || {})[\"intweb\"]);\r\n if (intWeb && isValueAssigned(intWeb[STR_MSFPC])) {\r\n return intWeb[STR_MSFPC];\r\n }\r\n return null;\r\n}\r\nfunction _getMsfpc(theEvents) {\r\n var msfpc = null;\r\n for (var lp = 0; msfpc === null && lp < theEvents[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n msfpc = _getEventMsfpc(theEvents[lp]);\r\n }\r\n return msfpc;\r\n}\r\n/**\r\n* This class defines a \"batch\" events related to a specific iKey, it is used by the PostChannel and HttpManager\r\n* to collect and transfer ownership of events without duplicating them in-memory. This reduces the previous\r\n* array duplication and shared ownership issues that occurred due to race conditions caused by the async nature\r\n* of sending requests.\r\n*/\r\nvar EventBatch = /** @class */ (function () {\r\n /**\r\n * Private constructor so that caller is forced to use the static create method.\r\n * @param iKey - The iKey to associate with the events (not validated)\r\n * @param addEvents - The optional collection of events to assign to this batch - defaults to an empty array.\r\n */\r\n function EventBatch(iKey, addEvents) {\r\n var events = addEvents ? [][_DYN_CONCAT /* @min:%2econcat */](addEvents) : [];\r\n var _self = this;\r\n var _msfpc = _getMsfpc(events);\r\n _self[_DYN_I_KEY /* @min:%2eiKey */] = function () {\r\n return iKey;\r\n };\r\n _self.Msfpc = function () {\r\n // return the cached value unless it's undefined -- used to avoid cpu\r\n return _msfpc || STR_EMPTY;\r\n };\r\n _self[_DYN_COUNT /* @min:%2ecount */] = function () {\r\n return events[_DYN_LENGTH /* @min:%2elength */];\r\n };\r\n _self[_DYN_EVENTS /* @min:%2eevents */] = function () {\r\n return events;\r\n };\r\n _self.addEvent = function (theEvent) {\r\n if (theEvent) {\r\n events[_DYN_PUSH /* @min:%2epush */](theEvent);\r\n if (!_msfpc) {\r\n // Not found so try and find one\r\n _msfpc = _getEventMsfpc(theEvent);\r\n }\r\n return true;\r\n }\r\n return false;\r\n };\r\n _self[_DYN_SPLIT /* @min:%2esplit */] = function (fromEvent, numEvents) {\r\n // Create a new batch with the same iKey\r\n var theEvents;\r\n if (fromEvent < events[_DYN_LENGTH /* @min:%2elength */]) {\r\n var cnt = events[_DYN_LENGTH /* @min:%2elength */] - fromEvent;\r\n if (!isNullOrUndefined(numEvents)) {\r\n cnt = numEvents < cnt ? numEvents : cnt;\r\n }\r\n theEvents = events.splice(fromEvent, cnt);\r\n // reset the fetched msfpc value\r\n _msfpc = _getMsfpc(events);\r\n }\r\n return new EventBatch(iKey, theEvents);\r\n };\r\n }\r\n /**\r\n * Creates a new Event Batch object\r\n * @param iKey - The iKey associated with this batch of events\r\n */\r\n EventBatch.create = function (iKey, theEvents) {\r\n return new EventBatch(iKey, theEvents);\r\n };\r\n return EventBatch;\r\n}());\r\nexport { EventBatch };\r\n//# sourceMappingURL=EventBatch.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"EventBatch.js.map","sources":["EventBatch.js"],"sourcesContent":["/**\r\n* EventBatch.ts\r\n* @author Nev Wylie (newylie)\r\n* @copyright Microsoft 2020\r\n*/\r\nimport { isNullOrUndefined, isValueAssigned } from \"@microsoft/applicationinsights-core-js\";\r\nimport { STR_EMPTY, STR_MSFPC } from \"./InternalConstants\";\r\nimport { _DYN_CONCAT, _DYN_COUNT, _DYN_EVENTS, _DYN_I_KEY, _DYN_LENGTH, _DYN_PUSH, _DYN_SPLIT } from \"./__DynamicConstants\";\r\nfunction _getEventMsfpc(theEvent) {\r\n var intWeb = ((theEvent.ext || {})[\"intweb\"]);\r\n if (intWeb && isValueAssigned(intWeb[STR_MSFPC])) {\r\n return intWeb[STR_MSFPC];\r\n }\r\n return null;\r\n}\r\nfunction _getMsfpc(theEvents) {\r\n var msfpc = null;\r\n for (var lp = 0; msfpc === null && lp < theEvents[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n msfpc = _getEventMsfpc(theEvents[lp]);\r\n }\r\n return msfpc;\r\n}\r\n/**\r\n* This class defines a \"batch\" events related to a specific iKey, it is used by the PostChannel and HttpManager\r\n* to collect and transfer ownership of events without duplicating them in-memory. This reduces the previous\r\n* array duplication and shared ownership issues that occurred due to race conditions caused by the async nature\r\n* of sending requests.\r\n*/\r\nvar EventBatch = /** @class */ (function () {\r\n /**\r\n * Private constructor so that caller is forced to use the static create method.\r\n * @param iKey - The iKey to associate with the events (not validated)\r\n * @param addEvents - The optional collection of events to assign to this batch - defaults to an empty array.\r\n */\r\n function EventBatch(iKey, addEvents) {\r\n var events = addEvents ? [][_DYN_CONCAT /* @min:%2econcat */](addEvents) : [];\r\n var _self = this;\r\n var _msfpc = _getMsfpc(events);\r\n _self[_DYN_I_KEY /* @min:%2eiKey */] = function () {\r\n return iKey;\r\n };\r\n _self.Msfpc = function () {\r\n // return the cached value unless it's undefined -- used to avoid cpu\r\n return _msfpc || STR_EMPTY;\r\n };\r\n _self[_DYN_COUNT /* @min:%2ecount */] = function () {\r\n return events[_DYN_LENGTH /* @min:%2elength */];\r\n };\r\n _self[_DYN_EVENTS /* @min:%2eevents */] = function () {\r\n return events;\r\n };\r\n _self.addEvent = function (theEvent) {\r\n if (theEvent) {\r\n events[_DYN_PUSH /* @min:%2epush */](theEvent);\r\n if (!_msfpc) {\r\n // Not found so try and find one\r\n _msfpc = _getEventMsfpc(theEvent);\r\n }\r\n return true;\r\n }\r\n return false;\r\n };\r\n _self[_DYN_SPLIT /* @min:%2esplit */] = function (fromEvent, numEvents) {\r\n // Create a new batch with the same iKey\r\n var theEvents;\r\n if (fromEvent < events[_DYN_LENGTH /* @min:%2elength */]) {\r\n var cnt = events[_DYN_LENGTH /* @min:%2elength */] - fromEvent;\r\n if (!isNullOrUndefined(numEvents)) {\r\n cnt = numEvents < cnt ? numEvents : cnt;\r\n }\r\n theEvents = events.splice(fromEvent, cnt);\r\n // reset the fetched msfpc value\r\n _msfpc = _getMsfpc(events);\r\n }\r\n return new EventBatch(iKey, theEvents);\r\n };\r\n }\r\n /**\r\n * Creates a new Event Batch object\r\n * @param iKey - The iKey associated with this batch of events\r\n */\r\n EventBatch.create = function (iKey, theEvents) {\r\n return new EventBatch(iKey, theEvents);\r\n };\r\n return EventBatch;\r\n}());\r\nexport { EventBatch };\r\n//# sourceMappingURL=EventBatch.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK POST plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -10,7 +10,7 @@ var _a;
10
10
  * @copyright Microsoft 2018-2020
11
11
  */
12
12
  import dynamicProto from "@microsoft/dynamicproto-js";
13
- import { FullVersionString, SenderPostManager, _getAllResponseHeaders, _throwInternal, _warnToConsole, arrForEach, dateNow, doPerf, dumpObj, extend, getCommonSchemaMetaData, getNavigator, getResponseText, getTime, hasOwnProperty, isBeaconsSupported, isFeatureEnabled, isFetchSupported, isNullOrUndefined, isReactNative, isUndefined, isValueAssigned, objForEachKey, objKeys, onConfigChange, optimizeObject, prependTransports, strUndefined } from "@microsoft/1ds-core-js";
13
+ import { FullVersionString, SenderPostManager, _getAllResponseHeaders, _throwInternal, _warnToConsole, arrForEach, dateNow, doPerf, dumpObj, extend, getCommonSchemaMetaData, getNavigator, getResponseText, getTime, hasOwnProperty, isBeaconsSupported, isFeatureEnabled, isFetchSupported, isNullOrUndefined, isReactNative, isUndefined, isValueAssigned, objForEachKey, objKeys, onConfigChange, optimizeObject, prependTransports, strUndefined } from "@microsoft/applicationinsights-core-js";
14
14
  import { arrAppend, getInst, isFunction } from "@nevware21/ts-utils";
15
15
  import { createClockSkewManager } from "./ClockSkewManager";
16
16
  import { EventBatch } from "./EventBatch";
@@ -292,6 +292,7 @@ var HttpManager = /** @class */ (function () {
292
292
  return null;
293
293
  };
294
294
  _self[_DYN_CREATE_ONE_DSPAYLOAD /* @min:%2ecreateOneDSPayload */] = function (evts, optimize) {
295
+ var _a;
295
296
  try {
296
297
  // TODO: optimize
297
298
  var theBatches_1 = [];
@@ -312,14 +313,15 @@ var HttpManager = /** @class */ (function () {
312
313
  }
313
314
  }
314
315
  var requestDetails = _buildRequestDetails(thePayload, _useHeaders);
315
- var payloadData = {
316
- data: thePayload[_DYN_PAYLOAD_BLOB /* @min:%2epayloadBlob */],
317
- urlString: requestDetails.url,
318
- headers: requestDetails[_DYN_HDRS /* @min:%2ehdrs */],
319
- timeout: _xhrTimeout,
320
- disableXhrSync: _disableXhrSync,
321
- disableFetchKeepAlive: _disableFetchKeepAlive
322
- };
316
+ var payloadData = (_a = {
317
+ data: thePayload[_DYN_PAYLOAD_BLOB /* @min:%2epayloadBlob */],
318
+ urlString: requestDetails.url,
319
+ headers: requestDetails[_DYN_HDRS /* @min:%2ehdrs */],
320
+ timeout: _xhrTimeout
321
+ },
322
+ _a[_DYN_DISABLE_XHR_SYNC /* @min:disableXhrSync */] = _disableXhrSync,
323
+ _a[_DYN_DISABLE_FETCH_KEEP_A3 /* @min:disableFetchKeepAlive */] = _disableFetchKeepAlive,
324
+ _a);
323
325
  // Only automatically add the following headers if already sending headers and we are not attempting to avoid an options call
324
326
  if (_useHeaders) {
325
327
  if (!_hasHeader(payloadData[_DYN_HEADERS /* @min:%2eheaders */], STR_CACHE_CONTROL)) {
@@ -350,6 +352,7 @@ var HttpManager = /** @class */ (function () {
350
352
  return [_sendInterfaces[0 /* EventSendType.Batched */], _killSwitch, _serializer, _sendInterfaces, _getSendPostMgrConfig(), _urlString, _maxEvtPerBatch];
351
353
  };
352
354
  function _getSendPostMgrConfig() {
355
+ var _a;
353
356
  try {
354
357
  var onCompleteFuncs = {
355
358
  xdrOnComplete: _xdrOncomplete,
@@ -357,19 +360,20 @@ var HttpManager = /** @class */ (function () {
357
360
  xhrOnComplete: _xhrOnComplete,
358
361
  beaconOnRetry: _onBeaconRetry
359
362
  };
360
- var config = {
361
- enableSendPromise: false,
362
- isOneDs: true,
363
- disableCredentials: !_sendCredentials,
364
- fetchCredentials: _fetchCredentials,
365
- disableXhr: false,
366
- disableBeacon: !_useBeacons,
367
- disableBeaconSync: !_useBeacons,
368
- disableFetchKeepAlive: _disableFetchKeepAlive,
369
- timeWrapper: _timeoutWrapper,
370
- addNoResponse: _addNoResponse,
371
- senderOnCompleteCallBack: onCompleteFuncs
372
- };
363
+ var config = (_a = {
364
+ enableSendPromise: false,
365
+ isOneDs: true,
366
+ disableCredentials: !_sendCredentials
367
+ },
368
+ _a[_DYN_FETCH_CREDENTIALS /* @min:fetchCredentials */] = _fetchCredentials,
369
+ _a.disableXhr = false,
370
+ _a.disableBeacon = !_useBeacons,
371
+ _a.disableBeaconSync = !_useBeacons,
372
+ _a[_DYN_DISABLE_FETCH_KEEP_A3 /* @min:disableFetchKeepAlive */] = _disableFetchKeepAlive,
373
+ _a.timeWrapper = _timeoutWrapper,
374
+ _a[_DYN_ADD_NO_RESPONSE /* @min:addNoResponse */] = _addNoResponse,
375
+ _a.senderOnCompleteCallBack = onCompleteFuncs,
376
+ _a);
373
377
  return config;
374
378
  }
375
379
  catch (e) {
@@ -773,6 +777,7 @@ var HttpManager = /** @class */ (function () {
773
777
  useHeaders_1 = useHeaders_1 || requestDetails_1[_DYN_USE_HDRS /* @min:%2euseHdrs */];
774
778
  var sendEventStart_1 = getTime();
775
779
  doPerf(_core, function () { return "HttpManager:_doPayloadSend"; }, function () {
780
+ var _a;
776
781
  // Increment the send attempt count and add timings after packaging (So it's not serialized in the 1st attempt)
777
782
  for (var batchLp = 0; batchLp < thePayload.batches[_DYN_LENGTH /* @min:%2elength */]; batchLp++) {
778
783
  var theBatch = thePayload[_DYN_BATCHES /* @min:%2ebatches */][batchLp];
@@ -793,16 +798,17 @@ var HttpManager = /** @class */ (function () {
793
798
  // Disabling the use of const because of Issue:
794
799
  // - Task 9227844: [1DS] Some environments and packagers automatically "freeze" objects which are defined as const which causes any mutations to throw
795
800
  // eslint-disable-next-line prefer-const
796
- var orgPayloadData = {
797
- data: thePayload[_DYN_PAYLOAD_BLOB /* @min:%2epayloadBlob */],
798
- urlString: requestDetails_1.url,
799
- headers: requestDetails_1[_DYN_HDRS /* @min:%2ehdrs */],
800
- _thePayload: thePayload,
801
- _sendReason: sendReason,
802
- timeout: _xhrTimeout,
803
- disableXhrSync: _disableXhrSync,
804
- disableFetchKeepAlive: _disableFetchKeepAlive
805
- };
801
+ var orgPayloadData = (_a = {
802
+ data: thePayload[_DYN_PAYLOAD_BLOB /* @min:%2epayloadBlob */],
803
+ urlString: requestDetails_1.url,
804
+ headers: requestDetails_1[_DYN_HDRS /* @min:%2ehdrs */],
805
+ _thePayload: thePayload,
806
+ _sendReason: sendReason,
807
+ timeout: _xhrTimeout
808
+ },
809
+ _a[_DYN_DISABLE_XHR_SYNC /* @min:disableXhrSync */] = _disableXhrSync,
810
+ _a[_DYN_DISABLE_FETCH_KEEP_A3 /* @min:disableFetchKeepAlive */] = _disableFetchKeepAlive,
811
+ _a);
806
812
  // Only automatically add the following headers if already sending headers and we are not attempting to avoid an options call
807
813
  if (useHeaders_1) {
808
814
  if (!_hasHeader(orgPayloadData[_DYN_HEADERS /* @min:%2eheaders */], STR_CACHE_CONTROL)) {