tdrv
Forum Replies Created
-
Hey,
I am sharing my solution in case you still need help. I don’t like the AJAX option as it causes delays, instead, I prefer creating cache varies via Litespeed.
Here’s an example of what I have in my .htaccess file:
# For users from EU countries (VAT purposes) RewriteCond %{HTTP:CF-IPCountry} ^(AT|BE|BG|HR|CY|CZ|DK|EE|FI|FR|DE|GR|HU|IE|IT|LV|LT|LU|MT|NL|PL|PT|RO|SK|SI|ES|SE)$ RewriteRule .* - [CO=currency:EURVAT:.yourdomain.com,E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+eurvat] # For users from US RewriteCond %{HTTP:CF-IPCountry} ^US$ RewriteRule .* - [CO=currency:USD:.yourdomain.com,E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+usd] # For users from Canada RewriteCond %{HTTP:CF-IPCountry} ^CA$ RewriteRule .* - [CO=currency:CAD:.yourdomain.com,E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+cad] # For users from Australia RewriteCond %{HTTP:CF-IPCountry} ^AU$ RewriteRule .* - [CO=currency:AUD:.yourdomain.com,E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+aud] # For users from United Kingdom RewriteCond %{HTTP:CF-IPCountry} ^GB$ RewriteRule .* - [CO=currency:GBP:.yourdomain.com,E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+gbp]
You can adjust as per your setup with Price based on Country for Woocommerce.
It is important to note that you should also add proper crawler settings for each cookie in Litespeed -> Crawler -> Simulation Settings -> Cookie Simulation
Under Cookie Name add currency, and on the right add the cookie names you have set up in the .htaccess file.
Hi @jarnovos,
I am having this issue only when accessing the website from a country where we’ve disabled the Complianz consent banner (US for example)
How can we fix it?I am actually a PRO user, is there a special forum?
Or an email I should reach out to?
I prefer not to post my URL on WordPress forumsForum: Plugins
In reply to: [Yoast SEO] Cannot remove sitemap@devnihil No, the wcfmmp-stores-sitemap.xml contains all wcfm store urls.
They do contain a robots meta tag that’s set to index.There isn’t any option about wcfmmp-stores in Yoast SEO settings, there’s only one WCFM-related option that I have already disabled – screenshot.
The store urls are generated from user accounts, there isn’t such an option to control these in Yoast SEO.
I’ve tried using the filters on the page you’ve sent already but I am unsure how to make them work with the users.
Forum: Plugins
In reply to: [WebP Express] Background images not working as Webp (Elementor)Hey again!
After even more testing I somehow managed to make it work, Elementor background images are served as webp!
To be honest, I’ve got no clue what made it work but here’s the settings I used:
Screenshot #1, Screenshot #2However I think webp images are being served even to non-supporting browsers since the live test still fails ??
@albridi I hope you test this and it works for you as well
Forum: Plugins
In reply to: [WebP Express] Background images not working as Webp (Elementor)I’ve ran some more tests, when I’m using CDN Friendly operation mode everything seems to be working fine when I do the live tests (Elementor CSS backgrounds not being replaced though). However, when I’m using Varied Image Responses and having setup my CDN (Cloudflare) correctly as per the FAQ – the live test for checking if non-supporting webp browsers get JPEG is unsuccessful. Image is returned from Cloudflare cache.
I’d greatly appreciate some help with this whenever you have the time.
Forum: Plugins
In reply to: [WebP Express] Background images not working as Webp (Elementor)Hey, it’s because Elementor uses CSS to insert background like this for example:
.elementor-41 .elementor-element.elementor-element-42a27ef6:not(.elementor-motion-effects-element-type-background), .elementor-41 .elementor-element.elementor-element-42a27ef6 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("https://domain/wp-content/uploads/2019/06/test..jpg"); background-size: contain; }
Are you going to make Webp Express compatible with this?
Edit: I’ve just seen that in another post you said the .htaccess rewrite should work for CSS background images as well as lazy loaded images but it doesn’t seem to do so with Elementor for some reason.
- This reply was modified 3 years ago by tdrv.
Forum: Plugins
In reply to: [WunderAutomation] Incorrect Order Status Change via WebhookHey, I contacted you through the website but I’m still yet to receive a response.