Add requestheaders and cookie info to prewarm server. (#4259)
https://github.com/sitespeedio/sitespeed.io/issues/4258
This commit is contained in:
parent
7b6e3d61c9
commit
70447cfeec
|
|
@ -28,6 +28,14 @@ async function preWarmServer(urls, options, scriptOrMultiple) {
|
|||
headless: options.headless
|
||||
};
|
||||
|
||||
if (options.requestheader) {
|
||||
preWarmOptions['requestheader'] = options.requestheader;
|
||||
}
|
||||
|
||||
if (options.cookie) {
|
||||
preWarmOptions['cookie'] = options.cookie;
|
||||
}
|
||||
|
||||
if (options.android.enabled) {
|
||||
preWarmOptions.android = options.android;
|
||||
const chromeDevice = get(options, 'chrome.android.deviceSerial');
|
||||
|
|
|
|||
Loading…
Reference in New Issue