Wordpress LScache Plugin: LiteSpeed Cache Breaks Clicky Analytics Tracking
Last Updated on: Wed, 15 Apr 2026 00:00:02 I recently switched from W3 Total Cache to LiteSpeed Cache in order to utilize the benefit of my hosting using Litespeed Web Server. However it broke my analytics completely. Im using Clicky Analytics and it does not record any visits when the plugin is on. I turned the plugin off for now until the issue is resolved, but why is this happening? Clicky is a 3rd party Javascript embedded on the site, I thought it cant be affected by caching on my end. Heres the code embedded on the site to track visitors: try clicky.init(100811958) catch(e) Heres the response header for static.getclicky.com when the plugin was activated: HTTP/1.1 200 OK Date: Wed, 25 Oct 2017 23:57:55 GMT Content-Type: text/javascript charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding P3P: CP=NOI DSP COR CUR OUR NID NOR X-Proxy-Cache: HIT Content-Encoding: gzip CF-Cache-Status: HIT Expires: Mon, 30 Oct 2017 23:57:55 GMT Cache-Control: public, max-age=432000 Server: cloudflare-nginx CF-RAY: 3b391ef89353590f-DFW and heres with the plugin deactivated: HTTP/1.1 200 OK Date: Thu, 26 Oct 2017 13:00:55 GMT Content-Type: text/javascript charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding P3P: CP=NOI DSP COR CUR OUR NID NOR X-Proxy-Cache: HIT Content-Encoding: gzip CF-Cache-Status: HIT Expires: Tue, 31 Oct 2017 13:00:55 GMT Cache-Control: public, max-age=432000 Server: cloudflare-nginx CF-RAY: 3b3d99ed04f3244a-IAD As you can see theyre pretty much identical, so where is the problem? This topic was modified 5 years, 1 month ago by Smoker2. Reason: Grammar mistake Hi Smoker2, Usually response header will looks like this: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:installation#testing This is mine response header with ClouFlare not CloudFront. cf-h2-pushed:,, cf-ray:3b3e4fc1c93a2204-EWR content-encoding:gzip content-type:text/html charset=UTF-8 date:Thu, 26 Oct 2017 15:05:03 GMT server:cloudflare-nginx status:200 vary:Accept-Encoding x-litespeed-cache:hit x-powered-by:PHP/5.6.31 x-turbo-charged-by:LiteSpeed Could you try fix LSCache not working part first by following the wiki? If still not working, can you send a ticket to LiteSpeed? I went through the wiki, but theres nothing about 3rd party tracking codes. The responses I posted are not for the page requested, but for the JS tracking code itself. Hi Smoker2. Can you provide some additional details? Do you have any of the optimization features enabled? Can you share the URL so we can take a look? Thanks!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference