Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter splitmayo

    (@splitmayo)

    not working :(, if you acces to the website you will see the prices in clp, what would be the issue?

    you can acces to the page in this link

    Thread Starter splitmayo

    (@splitmayo)

    sorry ofr late reply, i added the following rule:

    <IfModule LiteSpeed>
    RewriteEngine on
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:HTTP_CF_IPCOUNTRY}]
    </IfModule>

    i get this header in the phpinfo.php file

    $_SERVER[‘HTTP_CF_IPCOUNTRY’] XX

    https://ibb.co/JC3Hzzw

    its correct?

    Thread Starter splitmayo

    (@splitmayo)

    i created the phpinfo, and enabled a module geoip, and only get this:

    https://ibb.co/19JN63D

    Thread Starter splitmayo

    (@splitmayo)

    i have cloudflare enabled and linked with litespeed plugin, the rules is not working, i think is beacause there is not a “CF-IPCountry ” name and value in the headers? if all where fine, i will find this value in headers ? (CF-IPCountry)

    Thread Starter splitmayo

    (@splitmayo)

    Not working for me ?? , im doing something wrong?

    <IfModule LiteSpeed>
    RewriteEngine on
    RewriteRule .* - [E=Cache-Control:vary=%{HTTP:CF-IPCountry}]
    </IfModule>
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##

    i need to do some config in cloudflare?

    Thread Starter splitmayo

    (@splitmayo)

    there is an alternative way? i dont have the knowledge and the permissons for that :(, im in a shared hosting enviroment.

    thanks for your reply

    Thread Starter splitmayo

    (@splitmayo)

    so, for ggeo vary the code for htaccess will look like this? its correct?

    <IfModule LiteSpeed>
      RewriteEngine on
      CacheLookup on
      RewriteRule .* - [E=Cache-Control:vary=%{ENV:GEO_COUNTRY}]
      RewriteRule .* - [E=Cache-Vary:woocommerce_current_currency]
    </IfModule>

    thanks in advance

    Thread Starter splitmayo

    (@splitmayo)

    So, does the cache vary according to geolocation?

    why is not working in my case?

    there is a rewriterule tat excludes from cache?

    thanks a lot for your support

    Thread Starter splitmayo

    (@splitmayo)

    Not working, when i add the cookie like this:

    wmc_current_currency
    wordpress_lp_cart

    Etc.

    Its correct?

    by the way, when i add the cookies like this, the headers says the following:

    x-litespeed-cache-control: miss
    an endless miss

    KJCFZMMP

    Thread Starter splitmayo

    (@splitmayo)

    this rule i put:
    RewriteRule .* - [E=Cache-Vary:woocommerce_current_currency]

    it caches the whole page.
    its supposed that code will exclude the cache for a price based in geolocation, for example if you access to the page in chile, you will see the price in CLP. but if you access from europe, or argentina, you will se the price in USD.

    and this is not working. what im doing wrong?

    Thread Starter splitmayo

    (@splitmayo)

    i have the following code on my .htaccess file:

    <IfModule LiteSpeed>
    CacheLookup on
    RewriteRule .* - [E=Cache-Vary:woocommerce_current_currency]
    </IfModule>
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.object-cache\.ini - [F,L]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE

    ?What im doing wrong?

    this is my ticket number:
    KJCFZMMP

    Thread Starter splitmayo

    (@splitmayo)

    what do you mean ?, you mean not exclude cookies?

Viewing 12 replies - 1 through 12 (of 12 total)