ESI issue
-
Hi,
I’ve got a very simple wooommerce website which displays same pages for unlogged and logged users.
The only differences are, of course cart, and a whislist button, and register/login button into menu.
I’d like to serve maximum of content from public cache to logged users.I added a crawler with “customer” role, as all logged users have got this role.
Recently, I change my hoster.
With my previous hoster (with Litespeed ADC), I used ESI. And for a nice behavior with the whislist plugin, I added its nonce in “ESI nonce”, like this:["stats_nonce","subscribe_nonce"] woosw* private woosw_key private woosw_* private woosw_vars* private woosw-security private
With my present hoster (with Litespeed Enterprise), with same setup, I’ve got several errors:
Uncaught ReferenceError: __litespeed_var_0__ is not defined
Uncaught ReferenceError: __litespeed_var_1__ is not defined
And in <head>:
<script>var __litespeed_var_0__="[an error occurred while processing this directive] ",__litespeed_var_1__="[an error occurred while processing this directive]<script>
Some issues appear concerning functionalities of theme, no more off-canvas menu for example:
Uncaught TypeError: Cannot read properties of undefined (reading 'site_layout') at 31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1:19033 at 31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1:19812 (anonymous) @ 31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1 (anonymous) @ 31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1 jquery.min.js:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'off_canvas_enable') TypeError: Cannot read properties of undefined (reading 'off_canvas_enable')
Or account menu (I suppose register/login menu):
Uncaught TypeError: Cannot read properties of undefined (reading 'hf_account_action_type') at accountMenuToggle (31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1:12947) at 31444d843fff5b34bb72332b835fd86b.js?ver=fd86b:1:14047
In switching of hoster, no configuration has changed on my side.
But, all things considered, is there any interest in using ESI for me since, for logged-in users, the only private elements are their whislist and the “my account” menu (register/login)?
Given that I already have a crawler with the “customer” role (i.e. logged-in user).Report: TCRMXFPL
02/21/2024 12:17:07NB: with this report, ESI is OFF, otherwise, it lacks an important and needed off-canvas menu.
Thanks for any advice.
Best regards
- The topic ‘ESI issue’ is closed to new replies.