litecache
Forum Replies Created
-
Thanks! Page speed tool works fine after turning off the Guest mode.
But only if your page is cached.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itEven if it may read like a solution, this solution is not an unconditional solution. For example, when using guestmode, the value for the _lscache_vary cookie does not match. In addition, this solution implies that the built-in crawler could be used for a denial-of-service attack. Especially since there is no feedback on load control.
Forum: Plugins
In reply to: [LiteSpeed Cache] Header loading issueCould you please help me out?
You have activated the Guestmode. To understand why you have such a page effect, you should first read this blog post. If you still have trouble understanding it, feel free to get in touch.
https://blog.litespeedtech.com/2021/06/01/guest-mode-for-wordpress-in-lscwp-v4-0/
Is there anyway I can solve this?
There is nothing to solve. You have activated Guestmode and as long as PageSpeed does not object, only the score matters. You can disable Guestmode and then your page will display normally at PageSpeed, but the score will drop. To better understand the Guestmode, please read the following:
https://blog.litespeedtech.com/2021/06/01/guest-mode-for-wordpress-in-lscwp-v4-0/
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itCan you explain what do you mean by that?
Sorry, this forum doesn’t allow to post promotional links. Use Google instead please.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itIf you also have differentiated prices, then my criticism is put into perspective. But the problem with VPN remains. That’s why you have to take into account that someone can cheat cheaper prices.
As already mentioned, there is a way for you to warm up the cache for all users, but since this feature doesn’t work in the cache plugin anymore, there’s little point in giving you details about it. Luckily there are other cache crawlers…..
Forum: Plugins
In reply to: [LiteSpeed Cache] Google search console index error php fileAdd this code to your .htaccess outside of LiteSpeed markers:
RewriteCond %{REQUEST_URI} \/guest.vary\.php [NC] RewriteRule ^.*$ - [ENV=NOINDEX:true] header set X-Robots-Tag "noindex,nofollow,noodp" env=NOINDEX
The reason Google is reporting this error to you is that you had guestmode enabled in the past and now it seems you don’t. Actually, you don’t have to do anything at all, because Google is a bit sluggish and it takes a while for Google to figure out that guest.vary.php no longer exists. You have no disadvantages because of this.
After all, it is an integral part of the Internet that sources disappear or are deleted, but only Google expects a different status 410 and not just 404 (“soft”). There is no official soft 404. There is either a 404 or 404, but no soft 404.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itYou seem to have made up your mind that you want to use GEOIP despite the unsafe use of it. But I have to tell you again, the disadvantages of using GEOIP clearly outweigh them and are therefore disproportionate. Above all, you cannot warm up the cache for EU users. There is a possibility that you could do it, but the necessary function in the cache plugin has not worked for a long time.
However, I assume that you only want to use the GEOIP for tax purposes.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itHow will the cache work then?
There is no need to define extra cache vary for non EU visitors. Let’s say it’s the default cache vary. For these visiors you can use the crawler to warmup the cache.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itBy the way, as I understand, the crawler will not know about this setup and will only crawl create one set of cached pages – the other will be generated from user visits, right?
Right.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itYes, I’m using Maxmind DB with WooCommerce and they are displaying the prices according to that so it should be ok.
Maxmind isn’t safe. If IP comes from VPN Maxmind will also fail.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itThis rule only creates different cache copies depending on the yountry a user comes from, but not else. You need a PHP function as well that uses the same GEOIP database and this function displays price with or without tax depending on the yountry code. Both detection must be sync. Otherwise it will fail.
But note that the detection is not safe. If someone is using a VPN service, you are likely to run into problems. That’s why I wouldn’t do it, I stick to what’s mandatory in your country.
- This reply was modified 1 year, 7 months ago by litecache.
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itYou must define all countries that are within EU and group them to 1 cache vary. Not tested, but the logic says that it should work.
<IfModule mod_geoip.c> RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(DE|FR|IT|AT)$ RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+eu] </IfModule>
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache for European Union and outside itForum: Plugins
In reply to: [LiteSpeed Cache] support avif formatUsing avif image format isn’t as easy as you might think, and it’s not as easy to solve with a .htaccess rule.
First you have to be aware that the cache plugin is not avif ready. This also applies to the built-in crawler. If you want to use a 3rd party plugin for generating avif images, then assume that all of the ones I know work incorrectly because they use the wrong criteria to detect if a browser supports the avif format . With a 3rd party plugin, the entire function for image optimization and for saving the original images becomes inactive or irrelevant. In the sum of all problems, you can assume that everything that has to do with images will no longer work. But there is hope. A plugin will be available shortly that will completely replace the cache plugin with the important function of avif replacement.
This includes the optimization of the images, the cache functions for avif images, the built-in crawler, the lazy load function. This not only makes it better, but also faster, frees it from the bugs of the cache plugin and ultimately ensures a better PageSpeed Score. Explicitly programmed for LiteSpeed and the LiteSpeed Cache Plugin for WordPress. You just have to be patient. Next week it’s time.
- This reply was modified 1 year, 7 months ago by litecache.