litespeed cache + wp compress incompatibility
-
so I want to make litespeed cache to work along nicely with the CDN plugin (wp compress) that I use. Problem is, when I turn on wp compress, in gtmetrix, it become very slow, and the culprit is that the page’s litespeed cache control turn to no-cache
x-litespeed-cache-control no-cache
https://gtmetrix.com/reports/fesia.co.id/Ju8zD1fl/
this makes the site really slow, and when I uninstall wpcompress, it go back showing the cache.
x-litespeed-cache hit
https://gtmetrix.com/reports/fesia.co.id/DekrpqdL/
please help. I also are asking for help if the developer of wp compress know something, but it’s really hard to crack this down.
While in other site, I tested using wp force ssl & cloudflare, then using litespeed + wp compress, somehow it now goes along nicely and the page are changed to Hit while using both, but I can’t replicate it in the current site.
any help is appreciated.
The page I need help with: [log in to see the link]
-
report number ITBCVFMV
please follow this guide to enable debug log
it will tell why it gives no-cache header
I have :
07/09/22 00:04:49.454 [172.255.48.140:44846 1 NOG] ?? ------GET HTTP/1.1 /shop 07/09/22 00:04:49.454 [172.255.48.140:44846 1 NOG] Query String: 07/09/22 00:04:49.691 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.692 [172.255.48.140:44846 1 NOG] [Optm] init 07/09/22 00:04:49.774 [172.255.48.140:44846 1 NOG] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:49.775 [172.255.48.140:44846 1 NOG] [Ctrl] X Cache_control init on 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 from https://veloved.id/shop 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 to https://veloved.id/shop/ 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 different redirection 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] ?? [Tag] Add --- HTTP.301 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Vary] role id: failed, guest 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:49.781 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.783 [172.255.48.140:44846 1 NOG] [Optm] bypass: Not frontend HTML type 07/09/22 00:04:49.783 [172.255.48.140:44846 1 NOG] End response -------------------------------------------------------------------------------- 07/09/22 00:04:50.291 [172.255.48.140:44846 1 XtC] ?? ------GET HTTP/1.1 /shop/ 07/09/22 00:04:50.291 [172.255.48.140:44846 1 XtC] Query String: 07/09/22 00:04:50.509 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:50.510 [172.255.48.140:44846 1 XtC] [Optm] init 07/09/22 00:04:50.592 [172.255.48.140:44846 1 XtC] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:50.592 [172.255.48.140:44846 1 XtC] [Ctrl] X Cache_control init on 07/09/22 00:04:51.846 [172.255.48.140:44846 1 XtC] [Core] Footer hook called 07/09/22 00:04:51.976 [172.255.48.140:44846 1 XtC] [Core] Footer check passed 07/09/22 00:04:51.976 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Vary] role id: failed, guest 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Core] Footer check passed 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Media] bypass: Not cacheable 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Optm] bypass: Not cacheable 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] End response -------------------------------------------------------------------------------- 07/09/22 00:04:55.019 [172.255.48.140:44846 1 Yu6] ?? ------GET HTTP/1.1 /shop 07/09/22 00:04:55.019 [172.255.48.140:44846 1 Yu6] Query String: 07/09/22 00:04:55.242 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.243 [172.255.48.140:44846 1 Yu6] [Optm] init 07/09/22 00:04:55.330 [172.255.48.140:44846 1 Yu6] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:55.331 [172.255.48.140:44846 1 Yu6] [Ctrl] X Cache_control init on 07/09/22 00:04:55.335 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 from https://veloved.id/shop 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 to https://veloved.id/shop/ 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 different redirection 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] ?? [Tag] Add --- HTTP.301 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Vary] role id: failed, guest 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.340 [172.255.48.140:44846 1 Yu6] [Optm] bypass: Not frontend HTML type 07/09/22 00:04:55.340 [172.255.48.140:44846 1 Yu6] End response -------------------------------------------------------------------------------- 07/09/22 00:04:55.776 [172.255.48.140:44846 1 sAP] ?? ------GET HTTP/1.1 /shop/ 07/09/22 00:04:55.776 [172.255.48.140:44846 1 sAP] Query String: 07/09/22 00:04:55.989 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:55.990 [172.255.48.140:44846 1 sAP] [Optm] init 07/09/22 00:04:56.079 [172.255.48.140:44846 1 sAP] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:56.080 [172.255.48.140:44846 1 sAP] [Ctrl] X Cache_control init on 07/09/22 00:04:57.336 [172.255.48.140:44846 1 sAP] [Core] Footer hook called 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Core] Footer check passed 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Vary] role id: failed, guest 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Core] Footer check passed 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Media] bypass: Not cacheable 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] [Optm] bypass: Not cacheable 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] End response --------------------------------------------------------------------------------
but I don’t know what it means or what to fix. When the cache is served properly :
07/09/22 00:09:55.811 [180.243.14.30:53058 1 YLT] ?? ------GET HTTP/1.1 (HTTPS) /shop/ 07/09/22 00:09:55.811 [180.243.14.30:53058 1 YLT] Query String: 07/09/22 00:09:56.058 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:56.061 [180.243.14.30:53058 1 YLT] [Optm] init 07/09/22 00:09:56.578 [180.243.14.30:53058 1 YLT] ?? [Tag] Add --- HTTP.200 07/09/22 00:09:56.579 [180.243.14.30:53058 1 YLT] [Ctrl] X Cache_control init on 07/09/22 00:09:57.963 [180.243.14.30:53058 1 YLT] [Core] Footer hook called 07/09/22 00:09:58.085 [180.243.14.30:53058 1 YLT] [Core] Footer check passed 07/09/22 00:09:58.086 [180.243.14.30:53058 1 YLT] [Ctrl] X Cache_control TTL -> 604800 07/09/22 00:09:58.086 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:58.086 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:58.087 [180.243.14.30:53058 1 YLT] [Vary] role id: failed, guest 07/09/22 00:09:58.087 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:58.087 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:58.087 [180.243.14.30:53058 1 YLT] ?? [Tag] Add --- WC_S 07/09/22 00:09:58.088 [180.243.14.30:53058 1 YLT] ?? X-LiteSpeed-Cache-Control: public,max-age=604800 07/09/22 00:09:58.088 [180.243.14.30:53058 1 YLT] ?? X-LiteSpeed-Tag: be7_HTTP.200,be7_WC_S,be7_archive,be7_URL./shop/,be7_PT.product,be7_ 07/09/22 00:09:58.094 [180.243.14.30:53058 1 YLT] [Core] Footer check passed 07/09/22 00:09:58.094 [180.243.14.30:53058 1 YLT] [Media] finalize 07/09/22 00:09:58.095 [180.243.14.30:53058 1 YLT] [Optm] start 07/09/22 00:09:58.101 [180.243.14.30:53058 1 YLT] [Optm] rm css snippet [Google fonts] //fonts.googleapis.com/css?family=Nunito%20Sans:400%7CLato&display=swap 07/09/22 00:09:58.102 [180.243.14.30:53058 1 YLT] [Optm] rm css snippet [Google fonts] https://fonts.googleapis.com/css?family=Poppins%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&display=auto&ver=6.0 07/09/22 00:09:59.151 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:59.151 [180.243.14.30:53058 1 YLT] [Vary] role id: failed, guest 07/09/22 00:09:59.151 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:59.151 [180.243.14.30:53058 1 YLT] [Router] get_role: 07/09/22 00:09:59.152 [180.243.14.30:53058 1 YLT] ?? [Tag] Add --- MIN.fa309688d1541730333665cc3973965a.css 07/09/22 00:09:59.157 [180.243.14.30:53058 1 YLT] [Optm] js defer exclude https://veloved.id/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 07/09/22 00:09:59.158 [180.243.14.30:53058 1 YLT] [Optm] js defer exclude https://veloved.id/wp-content/plugins/jet-blocks/assets/js/lib/jsticky/jquery.jsticky.min.js?ver=1.1.0 07/09/22 00:09:59.875 [180.243.14.30:53058 1 YLT] End response -------------------------------------------------------------------------------- 07/09/22 00:10:52.761 [172.255.48.133:52586 1 iHx] ?? ------GET HTTP/1.1 /shop 07/09/22 00:10:52.761 [172.255.48.133:52586 1 iHx] Query String: 07/09/22 00:10:52.975 [172.255.48.133:52586 1 iHx] [Router] get_role: 07/09/22 00:10:52.976 [172.255.48.133:52586 1 iHx] [Optm] init 07/09/22 00:10:53.482 [172.255.48.133:52586 1 iHx] ?? [Tag] Add --- HTTP.200 07/09/22 00:10:53.483 [172.255.48.133:52586 1 iHx] [Ctrl] X Cache_control init on 07/09/22 00:10:53.490 [172.255.48.133:52586 1 iHx] [Ctrl] 301 from https://veloved.id/shop 07/09/22 00:10:53.490 [172.255.48.133:52586 1 iHx] [Ctrl] 301 to https://veloved.id/shop/ 07/09/22 00:10:53.490 [172.255.48.133:52586 1 iHx] [Ctrl] 301 different redirection 07/09/22 00:10:53.491 [172.255.48.133:52586 1 iHx] ?? [Tag] Add --- HTTP.301 07/09/22 00:10:53.491 [172.255.48.133:52586 1 iHx] [Ctrl] X Cache_control TTL -> 604800 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] [Router] get_role: 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] [Router] get_role: 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] [Vary] role id: failed, guest 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] [Router] get_role: 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] [Router] get_role: 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] ?? [Tag] Add --- WC_S 07/09/22 00:10:53.492 [172.255.48.133:52586 1 iHx] ?? X-LiteSpeed-Cache-Control: public,max-age=604800 07/09/22 00:10:53.493 [172.255.48.133:52586 1 iHx] ?? X-LiteSpeed-Tag: be7_HTTP.200,be7_HTTP.301,be7_WC_S,be7_archive,be7_URL./shop/,be7_PT.product,be7_ 07/09/22 00:10:53.495 [172.255.48.133:52586 1 iHx] [Optm] bypass: Not frontend HTML type 07/09/22 00:10:53.496 [172.255.48.133:52586 1 iHx] End response -------------------------------------------------------------------------------- 07/09/22 00:10:54.041 [172.255.48.133:52586 1 vmQ] ?? ------GET HTTP/1.1 /shop/ 07/09/22 00:10:54.041 [172.255.48.133:52586 1 vmQ] Query String: 07/09/22 00:10:54.253 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:54.253 [172.255.48.133:52586 1 vmQ] [Optm] init 07/09/22 00:10:54.336 [172.255.48.133:52586 1 vmQ] ?? [Tag] Add --- HTTP.200 07/09/22 00:10:54.337 [172.255.48.133:52586 1 vmQ] [Ctrl] X Cache_control init on 07/09/22 00:10:55.702 [172.255.48.133:52586 1 vmQ] [Core] Footer hook called 07/09/22 00:10:55.825 [172.255.48.133:52586 1 vmQ] [Core] Footer check passed 07/09/22 00:10:55.825 [172.255.48.133:52586 1 vmQ] [Ctrl] X Cache_control TTL -> 604800 07/09/22 00:10:55.825 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:55.825 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:55.825 [172.255.48.133:52586 1 vmQ] [Vary] role id: failed, guest 07/09/22 00:10:55.826 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:55.826 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:55.826 [172.255.48.133:52586 1 vmQ] ?? [Tag] Add --- WC_S 07/09/22 00:10:55.826 [172.255.48.133:52586 1 vmQ] ?? X-LiteSpeed-Cache-Control: public,max-age=604800 07/09/22 00:10:55.826 [172.255.48.133:52586 1 vmQ] ?? X-LiteSpeed-Tag: be7_HTTP.200,be7_WC_S,be7_archive,be7_URL./shop/,be7_PT.product,be7_ 07/09/22 00:10:55.832 [172.255.48.133:52586 1 vmQ] [Core] Footer check passed 07/09/22 00:10:55.832 [172.255.48.133:52586 1 vmQ] [Media] finalize 07/09/22 00:10:55.833 [172.255.48.133:52586 1 vmQ] [Optm] start 07/09/22 00:10:55.839 [172.255.48.133:52586 1 vmQ] [Optm] rm css snippet [Google fonts] //fonts.googleapis.com/css?family=Nunito%20Sans:400%7CLato&display=swap 07/09/22 00:10:55.840 [172.255.48.133:52586 1 vmQ] [Optm] rm css snippet [Google fonts] https://fonts.googleapis.com/css?family=Poppins%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&display=auto&ver=6.0 07/09/22 00:10:56.880 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:56.880 [172.255.48.133:52586 1 vmQ] [Vary] role id: failed, guest 07/09/22 00:10:56.880 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:56.880 [172.255.48.133:52586 1 vmQ] [Router] get_role: 07/09/22 00:10:56.882 [172.255.48.133:52586 1 vmQ] ?? [Tag] Add --- MIN.8a4e7ccb354cff38cf3eecf3b598b943.css 07/09/22 00:10:56.886 [172.255.48.133:52586 1 vmQ] [Optm] js defer exclude https://veloved.id/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 07/09/22 00:10:56.887 [172.255.48.133:52586 1 vmQ] [Optm] js defer exclude https://veloved.id/wp-content/plugins/jet-blocks/assets/js/lib/jsticky/jquery.jsticky.min.js?ver=1.1.0 07/09/22 00:10:57.609 [172.255.48.133:52586 1 vmQ] End response --------------------------------------------------------------------------------
these is when it works properly (wp compress is not installed)
oh, and I watched the video, the strange thing is in my own browser and the test using https://www.webpagetest.org/, it shows cache hit.
but using gtmetrix & pingdom, it shows no-cache.
That’s why I’m rather confused why different test location shows different result
then please try to get log when you test from GTMetrix
hi, thank you for your reply, the above log when I got no-cache is the log I get when testing from GTMetrix. I’ll post it again below to make it clear :
07/09/22 00:04:49.454 [172.255.48.140:44846 1 NOG] ?? ------GET HTTP/1.1 /shop 07/09/22 00:04:49.454 [172.255.48.140:44846 1 NOG] Query String: 07/09/22 00:04:49.691 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.692 [172.255.48.140:44846 1 NOG] [Optm] init 07/09/22 00:04:49.774 [172.255.48.140:44846 1 NOG] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:49.775 [172.255.48.140:44846 1 NOG] [Ctrl] X Cache_control init on 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 from https://veloved.id/shop 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 to https://veloved.id/shop/ 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] [Ctrl] 301 different redirection 07/09/22 00:04:49.779 [172.255.48.140:44846 1 NOG] ?? [Tag] Add --- HTTP.301 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Vary] role id: failed, guest 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Router] get_role: 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:49.781 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:49.783 [172.255.48.140:44846 1 NOG] [Optm] bypass: Not frontend HTML type 07/09/22 00:04:49.783 [172.255.48.140:44846 1 NOG] End response -------------------------------------------------------------------------------- 07/09/22 00:04:50.291 [172.255.48.140:44846 1 XtC] ?? ------GET HTTP/1.1 /shop/ 07/09/22 00:04:50.291 [172.255.48.140:44846 1 XtC] Query String: 07/09/22 00:04:50.509 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:50.510 [172.255.48.140:44846 1 XtC] [Optm] init 07/09/22 00:04:50.592 [172.255.48.140:44846 1 XtC] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:50.592 [172.255.48.140:44846 1 XtC] [Ctrl] X Cache_control init on 07/09/22 00:04:51.846 [172.255.48.140:44846 1 XtC] [Core] Footer hook called 07/09/22 00:04:51.976 [172.255.48.140:44846 1 XtC] [Core] Footer check passed 07/09/22 00:04:51.976 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Vary] role id: failed, guest 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Router] get_role: 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:51.977 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Core] Footer check passed 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Media] bypass: Not cacheable 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] [Optm] bypass: Not cacheable 07/09/22 00:04:52.008 [172.255.48.140:44846 1 XtC] End response -------------------------------------------------------------------------------- 07/09/22 00:04:55.019 [172.255.48.140:44846 1 Yu6] ?? ------GET HTTP/1.1 /shop 07/09/22 00:04:55.019 [172.255.48.140:44846 1 Yu6] Query String: 07/09/22 00:04:55.242 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.243 [172.255.48.140:44846 1 Yu6] [Optm] init 07/09/22 00:04:55.330 [172.255.48.140:44846 1 Yu6] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:55.331 [172.255.48.140:44846 1 Yu6] [Ctrl] X Cache_control init on 07/09/22 00:04:55.335 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 from https://veloved.id/shop 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 to https://veloved.id/shop/ 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] 301 different redirection 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] ?? [Tag] Add --- HTTP.301 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:55.336 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Vary] role id: failed, guest 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Router] get_role: 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:55.337 [172.255.48.140:44846 1 Yu6] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:55.340 [172.255.48.140:44846 1 Yu6] [Optm] bypass: Not frontend HTML type 07/09/22 00:04:55.340 [172.255.48.140:44846 1 Yu6] End response -------------------------------------------------------------------------------- 07/09/22 00:04:55.776 [172.255.48.140:44846 1 sAP] ?? ------GET HTTP/1.1 /shop/ 07/09/22 00:04:55.776 [172.255.48.140:44846 1 sAP] Query String: 07/09/22 00:04:55.989 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:55.990 [172.255.48.140:44846 1 sAP] [Optm] init 07/09/22 00:04:56.079 [172.255.48.140:44846 1 sAP] ?? [Tag] Add --- HTTP.200 07/09/22 00:04:56.080 [172.255.48.140:44846 1 sAP] [Ctrl] X Cache_control init on 07/09/22 00:04:57.336 [172.255.48.140:44846 1 sAP] [Core] Footer hook called 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Core] Footer check passed 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Ctrl] not cacheable before ctrl finalize 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Vary] role id: failed, guest 07/09/22 00:04:57.459 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Router] get_role: 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] ?? X-LiteSpeed-Cache-Control: no-cache 07/09/22 00:04:57.460 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Core] Footer check passed 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.493 [172.255.48.140:44846 1 sAP] [Media] bypass: Not cacheable 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] [Ctrl] LSCACHE_NO_CACHE constant defined 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] [Optm] bypass: Not cacheable 07/09/22 00:04:57.494 [172.255.48.140:44846 1 sAP] End response --------------------------------------------------------------------------------
I watched your video and how the video demonstrate how to fix it when the log says what is the problem. In this case :
07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] LSCACHE_NO_CACHE constant defined
07/09/22 00:04:49.780 [172.255.48.140:44846 1 NOG] [Ctrl] not cacheable before ctrl finalizeso I don’t how to fix LSCACHE_NO_CACHE constant defined, and not cacheable before ctrl finalize. Is there a setting for it?
Using additional plugins to compress whatever is obsolete. LiteSpeed cache plugin already does what you like to get, but you need to have it enabled and to configured it.
@serpentdriver hi, I’m not using wp compress to “compress” the css, js, etc. I understand that.
I’m just simply using wp compress to offload the images from my site to their cdn (bunny cdn). I also know I can register the quic.cloud account, I’ve also tested that, and after testing it, I prefer the image optimization & cdn from wp compress. Just the image.
I already set it up so that wp compress Does not minify css, js, etc, so that part is not redundant.
The question in this thread is simply why does when wp compress turned on, on gtmetrix, it shows that the page is set to no-cache. On my previous post, I’ve pasted the LOG from Litesspeed when accesed through GTMetrix, and.. well I want to ask for help here since when it’s said LSCACHE_NO_CACHE constant defined , I don’t know where to look to “remove the constant” of some sort? to make it work.
try search the word “LSCACHE_NO_CACHE” in your plugins/theme files , see what you find.
found it, thx @qtwrk , it’s exactly as you said , there’s a line in the plugin :
// If SpeedTest Then disable LS cache and rocket cache if ( self::$wst ) { define( 'LSCACHE_NO_CACHE', true ); }
I’ll confirm to the dev on this ??
- The topic ‘litespeed cache + wp compress incompatibility’ is closed to new replies.