lscache_wp
lscache_wp copied to clipboard
Localise Resources does not work, URL to local file returns 404 error.
The fbevents.js is not cached properly using the url provided: https://github.com/litespeedtech/lscache_wp/blob/2aa6a115e8812d26f7505280c7fcbae89e10c977/data/const.default.ini#L462
The cached file returns a 404 error.
(index):104 GET https://example.com/wp-content/litespeed/localres/aHR0cHM6Ly9jb25uZWN0LmZhY2Vib29rLm5ldC9lbl9VUy9mYmV2ZW50cy5qcw== net::ERR_ABORTED 404
The issue appears to be relatively recent as pixel data has only stopped in the last two weeks or so.
The code was inserted using Code Snippets in to wp_head. The pixel tracking works when the lscache plugin is disabled or the url of the script removed from the Localization Files list.
Plugin version: 4.6 Wordpress version: 5.9.3
The issue appears to affect all scripts that are being saved locally. I've tested it by inserting other scripts in to a page and all the files return a 404.
<script src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script src="https://platform.twitter.com/widgets.js"></script>
Disabling Localise Resources works around the issue.
I've been having this problem for a few days, I ended up temporarily disabling litespeed, because I really need the facebook pixel. Did you manage to fix the problem? Without litespeed my site is slow and has a low Pagespeed score Sorry for any spelling mistakes, my english is not good.
I've been having this problem for a few days, I ended up temporarily disabling litespeed, because I really need the facebook pixel. Did you manage to fix the problem? Without litespeed my site is slow and has a low Pagespeed score Sorry for any spelling mistakes, my english is not good.
@DarlanOliveiraSA Disable the feature in Litespeed. Go to the menu Litespeed > Page Optimisation > [6] Localisation At the bottom there is a feature called: Localise Resources Turn it off.