• Resolved smjure

    (@smjure)


    Hey All

    When testing my sites on multisite WP with https://www.webpagetest.org/, I notice that the keep-alive is enabled only for main site but not also for other sites. Could anyone suggest how to enable (persistent) keep-alive for all sites? On webpagetest.org I also noticed that keep alive FAILED for certain .CSS and .PNG files. Is it possible to enable keep-alive separately for these files – if yes how? Thank you kindly.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Those are web server configurations, not set in WP. By default most webserver have the keepalive settings on.

    Thread Starter smjure

    (@smjure)

    Thank’s for the comment. I checked .htaccess and keep-alive is turned on, so home come that according to webpagetest.org the other site has keep-alive switched? Is there any way to debug this issue?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Subdomains, subfolders, or mapped domains?

    Thread Starter smjure

    (@smjure)

    Im not using mapped domains. Its multisite where both sites are installed under public_html and sharing the same wp folders. Maybe some other idea?

    What KeepAlive settings are you using in .htaccess? FYI KeepAlive and KeepAliveTimeout directives can not be set in .htaccess; they will be ignored. People report that this setting works in .htaccess:

    <ifModule mod_headers.c>
    Header set Connection keep-alive
    </ifModule>
    Thread Starter smjure

    (@smjure)

    This setting is what I have in .htaccess under /public_html.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Its multisite where both sites are installed under public_html and sharing the same wp folders. Maybe some other idea?

    What are your URLs like?

    domain.com/sitename (aka subfolder)

    or

    sitename.domain.com (aka subdomain)

    OR

    mappeddomain.com (aka mapped domains)

    That’s what I was asking ??

    Thread Starter smjure

    (@smjure)

    I see ??
    Well it’s just:
    domain1.com and
    domain2.com
    Hope i was correct, no subdomain or subfolder at least.

    I also made a step further. Found out with Firefox that on the second page, the connection is denoted: “keep-alive, close”. Also found this useful link:

    Thread Starter smjure

    (@smjure)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Hope i was correct, no subdomain or subfolder at least.

    I don’t think you know what your site is running. Multisite is either subdomains or sub folders, and you use a plugin to map domains. Are you sure you’re even on a multisite network?

    Thread Starter smjure

    (@smjure)

    I think so:
    define( ‘WP_ALLOW_MULTISITE’, true );

    I guess it’s then subfolders and am not using any plugin to map domains.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to enable "keep-alive" for all sites in multisite WP’ is closed to new replies.