Keep-Alive Help

kappity

New Member
#1
Hi All,

I am new to OpenLiteSpeed and I am working on setting it up to migrate my WordPress site over. I am testing a dev version of my site on litespeed now. One of the plugins is using admin-ajax.php and I noticed longer load times than they were on my old apache server. I noticed in the headers there is no Connection: Keep Alive. Looking through my OLS server and vhost config it appears keep alive time out is set. Am I overlooking something obvious? Below are the headers that are listed. Any help is greatly appreciated.

Response Headers:
access-control-allow-credentials: true
access-control-allow-origin: https://mydomain.dev
alt-svc: quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000
cache-control: no-cache, must-revalidate, max-age=0
content-encoding: gzip
content-type: application/json; charset=UTF-8
date: Fri, 04 Jun 2021 11:22:52 GMT
expires: Wed, 11 Jan 1984 05:00:00 GMT
referrer-policy: strict-origin-when-cross-origin
server: LiteSpeed
vary: Accept-Encoding
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-powered-by: PHP/7.4.16
x-robots-tag: noindex

Request Headers:
:authority: mydomain.dev
:method: POST
:path: /wp-admin/admin-ajax.php
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
cache-control: no-cache
content-length: 184
content-type: application/x-www-form-urlencoded; charset=UTF-8
cookie: wordpress_sec_234234234...2342342
origin: https://mydomain.dev
pragma: no-cache
referer: https://mydomain.dev/news-feed/
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"
sec-ch-ua-mobile: ?0
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
x-requested-with: XMLHttpRequest
 

Cold-Egg

Administrator
#2
Hi,
Keep-alive may not help in this case, you might want to improve your PHP performance. For the WordPress case, you may be able to take some advantage of LSCWP to bypass the wp-config.php trick, which may save you 0.1 or 0.2 seconds.
 
Top