Plugin Support
qtwrk
(@qtwrk)
please go to Cache -> Cache -> Cache login user , set to ON
its only private cache because i’m already login. if i check with curl url —head, still no cache. or if you check with online checker like cache-checker*com
Thanks
edit: homepage and pages status “hit”. only post still got “no-cache”. is it because permalink using .php in the end?
-
This reply was modified 2 years ago by
Jimmy Ahyari. Reason: more info added
Plugin Support
qtwrk
(@qtwrk)
No, plugin doesn’t care what’s the extension in URL , as long as its a valid HTML output
please grab the log on visiting post page where you get the no-cache
This is what i’ve got when check header:
curl https://jim.my.id/757/terlalu-banyak-mengelola-blog.php --head
HTTP/1.1 200 OK
Date: Fri, 10 Feb 2023 12:44:24 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
x-powered-by: Niagahoster
x-dns-prefetch-control: on
x-litespeed-tag: 4fe_HTTP.200
link: https://jim.my.id/wp-json/; rel="https://api.w.org/"
link: https://jim.my.id/wp-json/wp/v2/posts/757; rel="alternate"; type="application/json"
link: https://jim.my.id/?p=757; rel=shortlink
x-litespeed-cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
vary: User-Agent,User-Agent
x-turbo-charged-by: LiteSpeed
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=loAemvOxjUsoSePQafFHtCT4Sa%2BK4xV9AVywZnFb01p4SHo5DIXvW%2F%2FPPjua1bMLPRWeYd3%2BSKbcggEwm%2FwuYA773hHP0jckWuV7aoyBKG0IcIOZbxO4%2FfFOj8c%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 7974ef8e793b9ff1-SIN
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
and this is the log:
02/10/23 20:47:27.410 [125.164.97.39:51790 1 oWC] 💓</img> ------POST HTTP/1.1 (HTTPS) /wp-admin/admin-ajax.php
02/10/23 20:47:27.410 [125.164.97.39:51790 1 oWC] Query String:
02/10/23 20:47:27.410 [125.164.97.39:51790 1 oWC] HTTP_REFERER: https://jim.my.id/757/terlalu-banyak-mengelola-blog.php
02/10/23 20:47:27.410 [125.164.97.39:51790 1 oWC] Cookie _lscache_vary: guest_mode:1;logged-in:1;role:99
02/10/23 20:47:27.555 [125.164.97.39:51790 1 oWC] 👮</img> No cache due to Admin page
02/10/23 20:47:27.599 [125.164.97.39:51790 1 oWC] [Ctrl] X Cache_control -> private ( logged in user )
02/10/23 20:47:27.668 [125.164.97.39:51790 1 oWC] [Ctrl] not cacheable before ctrl finalize
02/10/23 20:47:27.668 [125.164.97.39:51790 1 oWC] [Router] get_role: administrator
02/10/23 20:47:27.668 [125.164.97.39:51790 1 oWC] [Core] Silence Comment due to REST/AJAX
02/10/23 20:47:27.668 [125.164.97.39:51790 1 oWC] 💰</img> X-LiteSpeed-Cache-Control: no-cache
02/10/23 20:47:27.669 [125.164.97.39:51790 1 oWC] Response headers --- array (
0 => 'X-Powered-By: PHP/8.0.25',
1 => 'Access-Control-Allow-Origin: https://jim.my.id',
2 => 'Access-Control-Allow-Credentials: true',
3 => 'Content-Type: text/html; charset=UTF-8',
4 => 'X-Robots-Tag: noindex',
5 => 'X-Content-Type-Options: nosniff',
6 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
7 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
8 => 'Referrer-Policy: strict-origin-when-cross-origin',
9 => 'X-Frame-Options: SAMEORIGIN',
10 => 'X-LiteSpeed-Cache-Control: no-cache',
)
02/10/23 20:47:27.669 [125.164.97.39:51790 1 oWC] End response
Plugin Support
qtwrk
(@qtwrk)
no no , don’t use HEAD , it will always be no-cache for HEAD, you need to specify -XGET
This morning, i’m checking this url with –head and got hit.. i don’t know why, but cache works now.
curl https://jim.my.id/757/terlalu-banyak-mengelola-blog.php --head
HTTP/1.1 200 OK
Date: Fri, 10 Feb 2023 23:39:41 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
x-powered-by: Niagahoster
x-dns-prefetch-control: on
link: https://jim.my.id/wp-json/; rel="https://api.w.org/"
link: https://jim.my.id/wp-json/wp/v2/posts/757; rel="alternate"; type="application/json"
link: https://jim.my.id/?p=757; rel=shortlink
x-litespeed-cache: hit
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
vary: User-Agent,User-Agent
x-turbo-charged-by: LiteSpeed
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=v0qIgIpqYyNXAuhN7oGhoPpnPj96lFJs0g%2BCwMQGEVSp%2FKn8I81EcNGpfkmaqImDiMzMchSmA0oZUXV6L4Z9E0U%2BHAVn0w%2BS2AzNk0XGPOsHr6gjetZzQ0rSXv8%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 7978af81af889fad-SIN
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
i’ve test in other tools, it hit too. Still confused about this, but today, everything seems ok.
Thanks
Plugin Support
qtwrk
(@qtwrk)
if a page was GET
‘ed before , then you do HEAD , it may see hit , if it was never cached before , HEAD will be no-cache