• Resolved sourfew

    (@sourfew)


    Hi

    Cache is working fine for non logged in users but I get a miss for logged in users.

    Report number: SWMMNSYL

    I’am not logged in as admin users.

    05/30/23 10:13:02.364 [217.213.80.50:6380 1 3oF] ?? ------GET HTTP/1.1 (HTTPS) /kop-salj/
    05/30/23 10:13:02.364 [217.213.80.50:6380 1 3oF] Query String:
    05/30/23 10:13:02.364 [217.213.80.50:6380 1 3oF] HTTP_REFERER: https://www.xxxxxxxxxxxxx.se/
    05/30/23 10:13:02.364 [217.213.80.50:6380 1 3oF] Cookie _lscache_vary: 0f54bfad522c00c223da46f23612b04a
    05/30/23 10:13:02.400 [217.213.80.50:6380 1 ycy] ?? ------GET HTTP/1.1 (HTTPS) /pnfpbmanifest.json
    05/30/23 10:13:02.400 [217.213.80.50:6380 1 ycy] Query String:
    05/30/23 10:13:02.400 [217.213.80.50:6380 1 ycy] HTTP_REFERER: https://www.xxxxxxxxxxxxx.se/kop-salj/
    05/30/23 10:13:02.404 [217.213.80.50:6380 1 DMu] ?? ------GET HTTP/1.1 (HTTPS) /kop-salj/
    05/30/23 10:13:02.404 [217.213.80.50:6380 1 DMu] Query String:
    05/30/23 10:13:02.404 [217.213.80.50:6380 1 DMu] HTTP_REFERER: https://www.xxxxxxxxxxxxx.se/
    05/30/23 10:13:02.404 [217.213.80.50:6380 1 DMu] Cookie _lscache_vary: 0f54bfad522c00c223da46f23612b04a
    05/30/23 10:13:02.425 [217.213.80.50:6380 1 Fn6] ?? ------GET HTTP/1.1 (HTTPS) /pnfpbmanifest.json
    05/30/23 10:13:02.425 [217.213.80.50:6380 1 Fn6] Query String:
    05/30/23 10:13:02.425 [217.213.80.50:6380 1 Fn6] HTTP_REFERER: https://www.xxxxxxxxxxxxx.se/kop-salj/
    05/30/23 10:13:02.786 [217.213.80.50:6380 1 3oF] [Ctrl] X Cache_control -> private ( logged in user )
    05/30/23 10:13:02.786 [217.213.80.50:6380 1 3oF] [Router] get_role: bbp_participant
    05/30/23 10:13:02.787 [217.213.80.50:6380 1 3oF] ?? Suppress default WP lazyload
    05/30/23 10:13:02.827 [217.213.80.50:6380 1 DMu] [Ctrl] X Cache_control -> private ( logged in user )
    05/30/23 10:13:02.827 [217.213.80.50:6380 1 DMu] [Router] get_role: bbp_participant
    05/30/23 10:13:02.828 [217.213.80.50:6380 1 DMu] ?? Suppress default WP lazyload
    05/30/23 10:13:02.868 [217.213.80.50:6380 1 Fn6] [Vary] ???? Guest mode
    05/30/23 10:13:02.869 [217.213.80.50:6380 1 Fn6] ?? Suppress default WP lazyload
    05/30/23 10:13:02.879 [217.213.80.50:6380 1 Fn6] [Optm] init
    05/30/23 10:13:02.880 [217.213.80.50:6380 1 ycy] [Vary] ???? Guest mode
    05/30/23 10:13:02.880 [217.213.80.50:6380 1 Fn6] [Optm] ? CCSS set to OFF due to missing domain key
    05/30/23 10:13:02.881 [217.213.80.50:6380 1 ycy] ?? Suppress default WP lazyload
    05/30/23 10:13:02.882 [217.213.80.50:6380 1 ycy] [Optm] init
    05/30/23 10:13:02.882 [217.213.80.50:6380 1 ycy] [Optm] ? CCSS set to OFF due to missing domain key
    05/30/23 10:13:02.955 [217.213.80.50:6380 1 3oF] ?? [Tag] Add --- HTTP.200
    05/30/23 10:13:02.955 [217.213.80.50:6380 1 3oF] [Ctrl] X Cache_control init on
    05/30/23 10:13:02.974 [217.213.80.50:6380 1 DMu] ?? [Tag] Add --- HTTP.200
    05/30/23 10:13:02.975 [217.213.80.50:6380 1 DMu] [Ctrl] X Cache_control init on
    05/30/23 10:13:03.092 [217.213.80.50:6380 1 Fn6] [Ctrl] not cacheable before ctrl finalize
    05/30/23 10:13:03.092 [217.213.80.50:6380 1 Fn6] ?? X-LiteSpeed-Cache-Control: no-cache
    05/30/23 10:13:03.092 [217.213.80.50:6380 1 Fn6] [Optm] bypass: Not frontend HTML type
    05/30/23 10:13:03.092 [217.213.80.50:6380 1 Fn6] Response headers --- array (
    0 => 'Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685434382; expires=Wed, 29-May-2024 08:13:02 GMT; Max-Age=31536000; path=/',
    1 => 'Set-Cookie: gdbbx_session_activity_e84836a1185ad8afe25863aec9fbe55d=0; expires=Tue, 30-May-2023 09:13:02 GMT; Max-Age=3600; path=/',
    2 => 'Set-Cookie: gdbbx_online_activity_e84836a1185ad8afe25863aec9fbe55d=8138-1685434382-7682; expires=Tue, 30-May-2023 08:16:02 GMT; Max-Age=180; path=/',
    3 => 'X-DNS-Prefetch-Control: on',
    4 => 'Content-Type: application/json',
    5 => 'X-LiteSpeed-Cache-Control: no-cache',
    )
    
    05/30/23 10:13:03.092 [217.213.80.50:6380 1 Fn6] End response
    
    05/30/23 10:13:03.127 [217.213.80.50:6380 1 ycy] [Ctrl] not cacheable before ctrl finalize
    05/30/23 10:13:03.127 [217.213.80.50:6380 1 ycy] ?? X-LiteSpeed-Cache-Control: no-cache
    05/30/23 10:13:03.128 [217.213.80.50:6380 1 ycy] [Optm] bypass: Not frontend HTML type
    05/30/23 10:13:03.128 [217.213.80.50:6380 1 ycy] Response headers --- array (
    0 => 'Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685434382; expires=Wed, 29-May-2024 08:13:02 GMT; Max-Age=31536000; path=/',
    1 => 'Set-Cookie: gdbbx_session_activity_e84836a1185ad8afe25863aec9fbe55d=0; expires=Tue, 30-May-2023 09:13:02 GMT; Max-Age=3600; path=/',
    2 => 'Set-Cookie: gdbbx_online_activity_e84836a1185ad8afe25863aec9fbe55d=7533-1685434382-8959; expires=Tue, 30-May-2023 08:16:02 GMT; Max-Age=180; path=/',
    3 => 'X-DNS-Prefetch-Control: on',
    4 => 'Content-Type: application/json',
    5 => 'X-LiteSpeed-Cache-Control: no-cache',
    )
    
    05/30/23 10:13:03.128 [217.213.80.50:6380 1 ycy] End response
    
    05/30/23 10:13:03.306 [217.213.80.50:6380 1 DMu] [Core] Footer hook called
    05/30/23 10:13:03.315 [217.213.80.50:6380 1 DMu] [Core] Footer check passed
    05/30/23 10:13:03.322 [217.213.80.50:6380 1 DMu] [Vary] set_cookie ---> admin_bar:1;guest_mode:1;logged-in:1
    05/30/23 10:13:03.322 [217.213.80.50:6380 1 DMu] ?? X-LiteSpeed-Cache-Control: private,max-age=1800
    05/30/23 10:13:03.322 [217.213.80.50:6380 1 DMu] ?? X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.200,public:6e8_page,public:6e8_URL./kop-salj/,public:6e8_Po.32,public:6e8_PGS,public:6e8_
    05/30/23 10:13:03.323 [217.213.80.50:6380 1 DMu] [Core] Footer check passed
    05/30/23 10:13:03.323 [217.213.80.50:6380 1 DMu] ?? finalize
    05/30/23 10:13:03.327 [217.213.80.50:6380 1 DMu] Response headers --- array (
    0 => 'Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685434382; expires=Wed, 29-May-2024 08:13:02 GMT; Max-Age=31536000; path=/',
    1 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    2 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
    3 => 'Content-Type: text/html; charset=UTF-8',
    4 => 'Link: https://www.xxxxxxxxxxxxx.se/wp-json/; rel="https://api.w.org/"',
    5 => 'Link: https://www.xxxxxxxxxxxxx.se/wp-json/wp/v2/pages/32; rel="alternate"; type="application/json"',
    6 => 'Link: https://www.xxxxxxxxxxxxx.se/?p=32; rel=shortlink',
    7 => 'Set-Cookie: lscache_vary=admin_bar%3A1%3Bguest_mode%3A1%3Blogged-in%3A1; expires=Thu, 01-Jun-2023 08:13:03 GMT; Max-Age=172800; path=/; secure; HttpOnly', 8 => 'X-LiteSpeed-Cache-Control: private,max-age=1800', 9 => 'X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.200,public:6e8_page,public:6e8_URL./kop-salj/,public:6e8_Po.32,public:6e8_PGS,public:6e8',
    )
    
    05/30/23 10:13:03.327 [217.213.80.50:6380 1 DMu] End response
    
    05/30/23 10:13:03.358 [217.213.80.50:6243 1 SUc] ?? ------GET HTTP/1.1 (HTTPS) /pnfpb_icpush_pwa_sw.js
    05/30/23 10:13:03.358 [217.213.80.50:6243 1 SUc] Query String:
    05/30/23 10:13:03.358 [217.213.80.50:6243 1 SUc] Cookie lscache_vary: 0f54bfad522c00c223da46f23612b04a 05/30/23 10:13:03.392 [217.213.80.50:6380 1 3oF] [Core] Footer hook called 05/30/23 10:13:03.400 [217.213.80.50:6380 1 3oF] [Core] Footer check passed 05/30/23 10:13:03.406 [217.213.80.50:6380 1 3oF] [Vary] set_cookie ---> admin_bar:1;guest_mode:1;logged-in:1 05/30/23 10:13:03.407 [217.213.80.50:6380 1 3oF] ?? X-LiteSpeed-Cache-Control: private,max-age=1800 05/30/23 10:13:03.407 [217.213.80.50:6380 1 3oF] ?? X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.200,public:6e8_page,public:6e8_URL./kop-salj/,public:6e8_Po.32,public:6e8_PGS,public:6e8
    05/30/23 10:13:03.407 [217.213.80.50:6380 1 3oF] [Core] Footer check passed
    05/30/23 10:13:03.407 [217.213.80.50:6380 1 3oF] ?? finalize
    05/30/23 10:13:03.411 [217.213.80.50:6380 1 3oF] Response headers --- array (
    0 => 'Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685434382; expires=Wed, 29-May-2024 08:13:02 GMT; Max-Age=31536000; path=/',
    1 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    2 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
    3 => 'Content-Type: text/html; charset=UTF-8',
    4 => 'Link: https://www.xxxxxxxxxxxxx.se/wp-json/; rel="https://api.w.org/"',
    5 => 'Link: https://www.xxxxxxxxxxxxx.se/wp-json/wp/v2/pages/32; rel="alternate"; type="application/json"',
    6 => 'Link: https://www.xxxxxxxxxxxxx.se/?p=32; rel=shortlink',
    7 => 'Set-Cookie: lscache_vary=admin_bar%3A1%3Bguest_mode%3A1%3Blogged-in%3A1; expires=Thu, 01-Jun-2023 08:13:03 GMT; Max-Age=172800; path=/; secure; HttpOnly', 8 => 'X-LiteSpeed-Cache-Control: private,max-age=1800', 9 => 'X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.200,public:6e8_page,public:6e8_URL./kop-salj/,public:6e8_Po.32,public:6e8_PGS,public:6e8',
    )
    
    05/30/23 10:13:03.411 [217.213.80.50:6380 1 3oF] End response
    
    05/30/23 10:13:03.792 [217.213.80.50:6243 1 SUc] [Ctrl] X Cache_control -> private ( logged in user )
    05/30/23 10:13:03.792 [217.213.80.50:6243 1 SUc] [Router] get_role: bbp_participant
    05/30/23 10:13:03.793 [217.213.80.50:6243 1 SUc] ?? Suppress default WP lazyload
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] ?? ------POST HTTP/1.1 (HTTPS) /prodcms/wp-admin/admin-ajax.php
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] Query String:
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] HTTP_REFERER: https://www.xxxxxxxxxxxxx.se/kop-salj/
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] Cookie _lscache_vary: 0f54bfad522c00c223da46f23612b04a
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] LSCACHE_VARY_COOKIE: ,wp-postpass_e84836a1185ad8afe25863aec9fbe55d
    05/30/23 10:13:03.798 [217.213.80.50:6380 1 dN6] LSCACHE_VARY_VALUE: +ismobile+webp
    05/30/23 10:13:03.955 [217.213.80.50:6243 1 SUc] [Ctrl] not cacheable before ctrl finalize
    05/30/23 10:13:03.960 [217.213.80.50:6243 1 SUc] [Vary] set_cookie ---> admin_bar:1;guest_mode:1;logged-in:1
    05/30/23 10:13:03.960 [217.213.80.50:6243 1 SUc] ?? X-LiteSpeed-Cache-Control: no-cache
    05/30/23 10:13:03.961 [217.213.80.50:6243 1 SUc] Response headers --- array (
    0 => 'Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685434383; expires=Wed, 29-May-2024 08:13:03 GMT; Max-Age=31536000; path=/',
    1 => 'Content-type: text/javascript;charset=UTF-8',
    2 => 'Set-Cookie: _lscache_vary=admin_bar%3A1%3Bguest_mode%3A1%3Blogged-in%3A1; expires=Thu, 01-Jun-2023 08:13:03 GMT; Max-Age=172800; path=/; secure; HttpOnly',
    3 => 'X-LiteSpeed-Cache-Control: no-cache',
    )
    
    05/30/23 10:13:03.961 [217.213.80.50:6243 1 SUc] End response
    
    05/30/23 10:13:05.439 [217.213.80.50:6380 1 dN6] ?? No cache due to Admin page
    05/30/23 10:13:06.066 [217.213.80.50:6380 1 dN6] [Ctrl] X Cache_control -> private ( logged in user )
    05/30/23 10:13:06.690 [217.213.80.50:6380 1 dN6] ?? [Tag] Add --- HTTP.200
    05/30/23 10:13:06.690 [217.213.80.50:6380 1 dN6] [Ctrl] not cacheable before ctrl finalize
    05/30/23 10:13:06.690 [217.213.80.50:6380 1 dN6] [Router] get_role: bbp_participant
    05/30/23 10:13:06.690 [217.213.80.50:6380 1 dN6] [Vary] can_change_vary bypassed due to ajax call
    05/30/23 10:13:06.690 [217.213.80.50:6380 1 dN6] [Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const
    05/30/23 10:13:06.691 [217.213.80.50:6380 1 dN6] [Core] Silence Comment due to REST/AJAX
    05/30/23 10:13:06.691 [217.213.80.50:6380 1 dN6] ?? X-LiteSpeed-Cache-Control: no-cache
    05/30/23 10:13:06.691 [217.213.80.50:6380 1 dN6] Response headers --- array (
    0 => 'Access-Control-Allow-Origin: https://www.xxxxxxxxxxxxx.se',
    1 => 'Access-Control-Allow-Credentials: true',
    2 => 'Content-Type: text/html; charset=UTF-8',
    3 => 'X-Robots-Tag: noindex',
    4 => 'X-Content-Type-Options: nosniff',
    5 => 'Referrer-Policy: strict-origin-when-cross-origin',
    6 => 'X-Frame-Options: SAMEORIGIN',
    7 => 'X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.200',
    8 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    9 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
    10 => 'X-LiteSpeed-Cache-Control: no-cache',
    )
    05/30/23 10:13:06.691 [217.213.80.50:6380 1 dN6] End response
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support qtwrk

    (@qtwrk)

    X-LiteSpeed-Cache-Control: private,max-age=1800

    as you can see in log , the login user’s cache only valid for 30 minutes , so it could be normal you see a lot of miss since it will invalidate soon.

    justinassimanavicius

    (@justinassimanavicius)

    Hi, sorry to jump into your thread, but I’m experiencing a very similar problem. Even though logs say it’s cached for 30 mins, subsequent requests still “miss”.

    In my case this log line ”?[Vary] set_cookie —> admin_bar:1;logged-in:1″ sounds suspicious, as user is not admin and does not see admin bar. Could this be case?

    Plugin Support qtwrk

    (@qtwrk)

    @justinassimanavicius please create your own topic for your issue

    but that is normal cookie for login users

    Thread Starter sourfew

    (@sourfew)

    But I get DONOTCACHEPAGE but I can’t figure out why.

    I also get “No cache due to admin page” but I don’t any admin page.

    Plugin Support qtwrk

    (@qtwrk)

    from your above log , the no cache due to admin page was referring to admin-ajax.php

    ------POST HTTP/1.1 (HTTPS) /prodcms/wp-admin/admin-ajax.php
    Thread Starter sourfew

    (@sourfew)

    Is it possible to turn of calls to admin-ajax.php and still have a working site?

    I’am using BuddyPress and bbPress and I know BuddyPress is not cache friendly but I would like to cache bbPress and all other wordpress pages.

    Plugin Support qtwrk

    (@qtwrk)

    admin-ajax is always no-cache , and I believe you grabbed incorrect log

    you can try set test in debug include URI, then open your page as /?test to only generate the relevant log

    Thread Starter sourfew

    (@sourfew)

    Here is the output from /test both logged in an not logged in.

    # Not logged in

    06/02/23 14:24:44.352 [90.227.xxx.xxx:52128 1 Zkj] ?? ——GET HTTP/1.1 (HTTPS) /test
    06/02/23 14:24:44.352 [90.227.xxx.xxx:52128 1 Zkj] Query String:
    06/02/23 14:24:44.352 [90.227.xxx.xxx:52128 1 Zkj] Cookie lscache_vary: 0e7e48ec9689163c76ee1f3f00de1186 06/02/23 14:24:44.699 [90.227.xxx.xxx:52128 1 Zkj] [Router] get_role: 06/02/23 14:24:44.700 [90.227.xxx.xxx:52128 1 Zkj] ?? Suppress default WP lazyload 06/02/23 14:24:44.701 [90.227.xxx.xxx:52128 1 Zkj] [Optm] init 06/02/23 14:24:44.841 [90.227.xxx.xxx:52128 1 Zkj] [Ctrl] X Cache_control TTL -> 3600 06/02/23 14:24:44.842 [90.227.xxx.xxx:52128 1 Zkj] ?? [Tag] Add — HTTP.404 06/02/23 14:24:44.842 [90.227.xxx.xxx:52128 1 Zkj] [Ctrl] X Cache_control init on 06/02/23 14:24:45.016 [90.227.xxx.xxx:52128 1 Zkj] [Core] Footer hook called 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Core] Footer check passed 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Router] get_role: 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Router] get_role: 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Vary] role id: failed, guest 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Router] get_role: 06/02/23 14:24:45.022 [90.227.xxx.xxx:52128 1 Zkj] [Router] get_role: 06/02/23 14:24:45.023 [90.227.xxx.xxx:52128 1 Zkj] [Vary] set_cookie —> guest_mode:1 06/02/23 14:24:45.023 [90.227.xxx.xxx:52128 1 Zkj] ?? X-LiteSpeed-Cache-Control: public,max-age=3600 06/02/23 14:24:45.023 [90.227.xxx.xxx:52128 1 Zkj] ?? X-LiteSpeed-Tag: 6e8_HTTP.404,6e8_404,6e8_URL./test/,6e8
    06/02/23 14:24:45.023 [90.227.xxx.xxx:52128 1 Zkj] [Core] Footer check passed
    06/02/23 14:24:45.023 [90.227.xxx.xxx:52128 1 Zkj] ?? finalize
    06/02/23 14:24:45.025 [90.227.xxx.xxx:52128 1 Zkj] [Optm] start
    06/02/23 14:24:45.025 [90.227.xxx.xxx:52128 1 Zkj] Response headers — array (
    0 => ‘Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685708684; expires=Sat, 01-Jun-2024 12:24:44 GMT; Max-Age=31536000; path=/’,
    1 => ‘Set-Cookie: gdbbx_online_activity_e84836a1185ad8afe25863aec9fbe55d=2775-1685708677-7192; expires=Fri, 02-Jun-2023 12:27:44 GMT; Max-Age=180; path=/’,
    2 => ‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’,
    3 => ‘Cache-Control: no-cache, must-revalidate, max-age=0’,
    4 => ‘Content-Type: text/html; charset=UTF-8’,
    5 => ‘Link: https://www.xxxxx./wp-json/; rel=”https://api.w.org/”‘,
    6 => ‘Set-Cookie: lscache_vary=guest_mode%3A1; expires=Sun, 04-Jun-2023 12:24:45 GMT; Max-Age=172800; path=/; secure; HttpOnly’, 7 => ‘X-LiteSpeed-Cache-Control: public,max-age=3600’, 8 => ‘X-LiteSpeed-Tag: 6e8_HTTP.404,6e8_404,6e8_URL./test/,6e8‘,
    )

    # Logged in

    06/02/23 14:30:52.194 [90.227.xxx.xxx:51986 1 A8D] ?? ——GET HTTP/1.1 (HTTPS) /test
    06/02/23 14:30:52.194 [90.227.xxx.xxx:51986 1 A8D] Query String:
    06/02/23 14:30:52.194 [90.227.xxx.xxx:51986 1 A8D] Cookie lscache_vary: 0f54bfad522c00c223da46f23612b04a 06/02/23 14:30:52.557 [90.227.xxx.xxx:51986 1 A8D] [Ctrl] X Cache_control -> private ( logged in user ) 06/02/23 14:30:52.557 [90.227.xxx.xxx:51986 1 A8D] [Router] get_role: bbp_participant 06/02/23 14:30:52.558 [90.227.xxx.xxx:51986 1 A8D] ?? Suppress default WP lazyload 06/02/23 14:30:52.699 [90.227.xxx.xxx:51986 1 A8D] [Ctrl] X Cache_control TTL -> 3600 06/02/23 14:30:52.699 [90.227.xxx.xxx:51986 1 A8D] ?? [Tag] Add — HTTP.404 06/02/23 14:30:52.699 [90.227.xxx.xxx:51986 1 A8D] [Ctrl] X Cache_control init on 06/02/23 14:30:52.880 [90.227.xxx.xxx:51986 1 A8D] [Core] Footer hook called 06/02/23 14:30:52.888 [90.227.xxx.xxx:51986 1 A8D] [Core] Footer check passed 06/02/23 14:30:52.889 [90.227.xxx.xxx:51986 1 A8D] [Vary] set_cookie —> admin_bar:1;guest_mode:1;logged-in:1 06/02/23 14:30:52.889 [90.227.xxx.xxx:51986 1 A8D] ?? X-LiteSpeed-Cache-Control: private,max-age=3600 06/02/23 14:30:52.889 [90.227.xxx.xxx:51986 1 A8D] ?? X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.404,public:6e8_404,public:6e8_URL./test/,public:6e8
    06/02/23 14:30:52.890 [90.227.xxx.xxx:51986 1 A8D] [Core] Footer check passed
    06/02/23 14:30:52.890 [90.227.xxx.xxx:51986 1 A8D] ?? finalize
    06/02/23 14:30:52.892 [90.227.xxx.xxx:51986 1 A8D] Response headers — array (
    0 => ‘Set-Cookie: gdbbx_tracking_activity_e84836a1185ad8afe25863aec9fbe55d=1685709052; expires=Sat, 01-Jun-2024 12:30:52 GMT; Max-Age=31536000; path=/’,
    1 => ‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’,
    2 => ‘Cache-Control: no-cache, must-revalidate, max-age=0’,
    3 => ‘Content-Type: text/html; charset=UTF-8’,
    4 => ‘Link: https://www.xxxxxxx../wp-json/; rel=”https://api.w.org/”‘,
    5 => ‘Set-Cookie: lscache_vary=admin_bar%3A1%3Bguest_mode%3A1%3Blogged-in%3A1; expires=Sun, 04-Jun-2023 12:30:52 GMT; Max-Age=172800; path=/; secure; HttpOnly’, 6 => ‘X-LiteSpeed-Cache-Control: private,max-age=3600’, 7 => ‘X-LiteSpeed-Tag: 6e8_tag_priv,public:6e8_HTTP.404,public:6e8_404,public:6e8_URL./test/,public:6e8‘,
    )

    Thread Starter sourfew

    (@sourfew)

    I have this in .htaccess. If I comment out it works in Safari but not in Chrome for some reason. If I delete all of the lscache section the no cache section appears again.

    ### marker NOCACHE COOKIES start ###

    RewriteCond %{HTTP_COOKIE} wordpress_logged_in

    RewriteRule .* – [E=Cache-Control:no-cache]

    ### marker NOCACHE COOKIES end ###

    Plugin Support qtwrk

    (@qtwrk)

    why do you add this cookie ? this will make it no-cache for login users for sure

    on your above log , both login user and guest user is visiting cachebale page

    refresh it again you should see it cache hit

    and please provide the report number again with latest conf

    Thread Starter sourfew

    (@sourfew)

    QARNFNKW

    The no cache cookie section is autogenerated and I can’t get rid of it. Even if I remove .htaccess it will reappear.

    My WordPress files is in a subfolder but I have specified lscache to look for .htaccess in /

    I have cloned my prod site to run on a subdomain but only in subfolder (start page in /subfolder) and in that setup private cache is working fine.

    I’am also using advanced ads that have a cache busting feature but it doesn’t matter if that is turned on or off. I don’t think I can use that feature together with lscache

    Plugin Support qtwrk

    (@qtwrk)

    you need to go to Cache -> Exclude -> Do not cache cookie , remove it from there, directly remove on htaccess won’t work , it will come back

    just to make sure we are on the same page, how exactly did you specify plugin to look htaccess ? you will need to define 2 constant , one for front , one for back

    Thread Starter sourfew

    (@sourfew)

    defined(“LITESPEED_CFG_HTACCESS”) || define(“LITESPEED_CFG_HTACCESS”, “/home/html/xxxxxxx/public_html/.htaccess”);

    defined(“LITESPEED_CFG_HTACCESS_BACKEND”) || define(“LITESPEED_CFG_HTACCESS_BACKEND”, “/home/html/xxxxxxxx/public_html/.htaccess”);

    The cookie section is now gone. Thank you, but I still have issues both with Safari and Chrome. And I also have problems with my cloned sites.

    It could be related to two plugins, Advanced Ads and GD toolbox pro but how can a plugin prevent caching? Is there a way to debug to find out?

    Plugin Support qtwrk

    (@qtwrk)

    you need to use this

    defined(“LITESPEED_CFG_HTACCESS”) || define(“LITESPEED_CFG_HTACCESS”, “/home/html/xxxxxxx/public_html/.htaccess”);
    defined(“LITESPEED_CFG_HTACCESS_BACKEND”) || define(“LITESPEED_CFG_HTACCESS_BACKEND”, “/home/html/xxxxxxxx/public_html/prodcms/.htaccess”);

    watch the BACKEND one , you need to add prodcms into it

    Thread Starter sourfew

    (@sourfew)

    Thanks but that doesn’t help.

    I have found out that two plugins are preventing page for logged in users due to variable cookies I think.

    How can I force private cache for all pages except for a few that I specify?

    /s

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘No cache for logged in users’ is closed to new replies.