FOUC on Woocommerce




Wordpress LScache Plugin: FOUC on Woocommerce

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello i got some trouble setting up correctly cache for the whole site and all cases, i got some connected users and guests also so i dedided to activate only the public cache and serve the private parts through ESI, but apparently got FOUCs when reload the cart and most generally all the woocommerce subsecquent parts (cart / checkout / account) i understand why these parts cannot be cached but its like there is no optimisation at all and of any kind on these pages. Can you please provide me some help if you have a clue ? For the report i running on litespeed server hosted by Hostinger, i ran into some problems before like cache issues (LS didnt want to Hit) but for now its gone. Also i found that when i enable the Mobile Cache option i got a 4500 error in the settings page, seems like LS cannot write ###Marker Mobile in htaccess, maybe a hostinger issue about permissions or so (I dont need mobile cache i guess, but that was only for testing) Report ID: IDZXQIBD (Tell me by email if you need temp access to website of logs export) Regards, Hi, you mean something like this ? as FOUC ? Best regards, Yeah, and especially when adding something in cart apparently. Looks weird. And site is slow on the shop, opening product page, or switch categorie is like 5s each. And dont know what im doin wrong but seems like there is a wrong option that messing up the cache Hello just to tell you i change some settings and apparently works better, some improve can still be done, but there (imo) bdd issues cause hostinger dont allow me to use redis on that server .. So i change this: Private Cache: ON ESI : OFF ESI CART: OFF Private CART CART: ON CCSS Optimisation: ON Regards Hi, the screenshot I took , was with LSCWP optimizaiton bypassed and if you think but seems like there is a wrong option that messing up the cache try , go to toolbox -> import/export -> export your current setting , then reset to default , see how it goes Best regards, Ok ill give it a shout. I got some weird results on some shop pages only appened on some pagination pages (when change page number on archives). For example go to https://thenicestguys.com/shop/sneakers/air-jordan/air-jordan-1/ And click on page 2 then page 3. Thanks for giving me some advice if you got a clue. Hi, it gives me bunch of 404 error on data JS , try disable cloudflare first to see how it goes I have seen cases that some CF WAF rule reports this as error and block it also try disable the JS defer Best regards, Ok i cantt disable it atm cause of hostinger (one more time) they god maintenance on the cloudflare module (so might be unstable) just to mention, id search a bit around and found that i got a bunch of pages in crawler blacklist, and every entry of this list lead to this error mentionned above. So i clear the blacklist and disable the crawler cron, apparently the blacklist appened on my crawler number 4 which is the crawler for connected users. Once these option disable all run as expected (i guess). Waiting for your return to determine what was the issue or if you need further info, lmk. Regards Ill try to disable CloudFlare soon, during the night cuz of the dns changing. I still have some issue on only 1 or two product of a given shop category, did you really think cloudflare is in cause ? Just to provide some complementary info, on the shop i got trouble on product of a given category (apparently only on the air jordans 1 mids). I got this error again on ALL product of this category, can you please help investigate in this ? Hi, you mean the FOUC ? or it stick that unstyle way forever ? from what I see, there is something else doing async CSS besides LSCWP the page was accessed with query string /?LSCWP_CTRL=before_optm this will literally make page load like LSCWP was never installed Best regards, Yeah i know what, you meean if you go on pages without optimization enable (e.g /?LSCWP_CTRL=before_optm) but the problem i mentionned above is like Forever Fouc (the bunch of 404 error), i disable cloudflare but error still there, it appears only on the Air Jordan 1 Mid in the shop, so might be a cache issue for now as i got nothing else (except some other plugins). REPORT : IDZXQIBD is it easy reproducible ? I dunno its the first time facing this kind of issue, i think its related to Cache but not sure at, all, do you want me to give you access with the login feature on LSCache ? ATM i trying migrate this site on another Server (Azure) and then try reproduce it, this new server running on OpenLiteSpeed. Ill update you about this.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference