Forum Replies Created

Viewing 14 replies - 46 through 59 (of 59 total)
  • Thread Starter wtvxy

    (@wtvxy)

    string(11) “43.231.0.46”

    Thread Starter wtvxy

    (@wtvxy)

    I set up Quic.cloud CDN and add above codes to .htaccess today.
    I meet a unpredictable situation.
    When I visit the website by domain.com, it correctly detect I am from CN and redirect. (domain.com is redirected to https://www.domain.com according to my wordpress setting)

    When I visit the website by https://www.domain.com, it detect I am from HK and do not redirect.
    You can see the debug log below.
    43.231.0.46 is the ip of Quic.cloud CDN HK server and 101.37.118.27 is my true CN ip.
    I only want to set up CN but not HK direction. Could you help me figure out what happen?

    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/","message":"\"CN\" is listed in [CN]","action":"MATCHED"}
    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/","message":"Destination: \/collection","action":"REDIRECTED"}
    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/","message":"\"CN\" is listed in [CN]","action":"MATCHED"}
    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/","message":"Destination: \/collection","action":"REDIRECTED"}
    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/collection","message":"\"CN\" is listed in [CN]","action":"MATCHED"}
    {"time":"2022-01-04 03:15:19","client_ip":"101.37.118.27","location":"CN","lookup_by":"??","cache":true,"uri":"https:\/\/theryang.com\/collection","message":"Page is not matched.","action":"ABORTED"}
    {"time":"2022-01-04 03:15:21","client_ip":"43.231.0.46","location":"HK","lookup_by":"??","cache":true,"uri":"https:\/\/www.theryang.com\/about\/","message":"\"HK\" is NOT listed in [CN]","action":"ABORTED"}
    {"time":"2022-01-04 03:15:22","client_ip":"43.231.0.46","location":"HK","lookup_by":"??","cache":true,"uri":"https:\/\/www.theryang.com\/collection\/","message":"\"HK\" is NOT listed in [CN]","action":"ABORTED"}
    {"time":"2022-01-04 03:15:27","client_ip":"43.231.0.46","location":"HK","lookup_by":"??","cache":true,"uri":"https:\/\/www.theryang.com\/","message":"\"HK\" is NOT listed in [CN]","action":"ABORTED"}
    {"time":"2022-01-04 03:15:31","client_ip":"43.231.0.46","location":"HK","lookup_by":"??","cache":true,"uri":"https:\/\/www.theryang.com\/","message":"\"HK\" is NOT listed in [CN]","action":"ABORTED"}
    Thread Starter wtvxy

    (@wtvxy)

    OK.
    Image Thumbnail Group Sizes
    thumbnail ( 150px x 150px )
    medium ( 300px x 300px )
    medium_large ( 768px x * )
    large ( 1024px x 1024px )
    1536×1536 ( 1536px x 1536px )
    2048×2048 ( 2048px x 2048px )
    byanca_select_image_square ( 650px x 650px )
    byanca_select_image_landscape ( 1300px x 650px )
    byanca_select_image_portrait ( 650px x 1300px )
    byanca_select_image_huge ( 1300px x 1300px )
    byanca_select_qs_image_portrait ( 280px x 394px )
    woocommerce_thumbnail ( 600px x 800px )
    woocommerce_single ( 1200px x * )
    woocommerce_gallery_thumbnail ( 100px x 100px )
    shop_catalog ( 600px x 800px )
    shop_single ( 1200px x * )
    shop_thumbnail ( 100px x 100px )

    It seems woocommerce and shop are exactly same thing. We only need to generate 3 types of thumbnail but it generate double. How can I avoid this situation?

    Thread Starter wtvxy

    (@wtvxy)

    Plus, could you tell me how to make share icon smaller?

    Thread Starter wtvxy

    (@wtvxy)

    OK. The first problem resolved.

    The second CSS applied but
    .yith-wcwl-add-button a:after {
    font-size: 20px !important;
    }

    seems only affect the added button icon but not for added button icon.

    Thread Starter wtvxy

    (@wtvxy)

    RewriteEngine on
    RewriteRule .* – [E=Cache-Control:vary=other]
    #set default vary to other
    RewriteCond %{HTTP:x-qc-country} CN
    RewriteRule .* – [E=Cache-Control:vary=CN]

    Get it, thank you! I will test it next week.

    • This reply was modified 3 years, 2 months ago by wtvxy.
    Thread Starter wtvxy

    (@wtvxy)

    Ok. I also find another post related to this:https://www.ads-software.com/support/topic/some-questions-to-vary-cache-by-country/

    It seems that I need to add these codes to .htaccess:

    <IfModule LiteSpeed>
    RewriteEngine on
    RewriteRule .* – [E=Cache-Control:vary=other]
    #set default vary to other
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE_BY_NAME} CN
    RewriteRule .* – [E=Cache-Control:vary=CN]
    </IfModule>

    Will quic.cloud sends country in header as cloudflare?

    Thread Starter wtvxy

    (@wtvxy)

    I need to clearify that I mentioned two plugins for two solutions. Since multi-block shortcode is infeasible, I would rather try another solution with ip-based redirect plugin: make a new page for Chinese customers and use ip to redirect from my home page to new page.

    I use shared host of namecheap and Quic.cloud CDN.

    Thread Starter wtvxy

    (@wtvxy)

    OK.

    Can I exclude cache for certain plugin?

    I am using a country & ip based plugin to redirect my homepage for some countries’ visitors.

    I don’t want to ip be uesd by next visitor. They may come from differnt country.

    • This reply was modified 3 years, 2 months ago by wtvxy.
    Thread Starter wtvxy

    (@wtvxy)

    Is anyother way to convert my multi-block blocks to ESI other than shortcode?

    Specificlly, in elementor.

    Thread Starter wtvxy

    (@wtvxy)

    OK.

    Does the defer js works for external script?

    One of my plugin sync my product to facebook, but I do not need it at home page.
    The facebook is banned in China, some of my visitors are continuing waiting for TTL to facebook.
    I see your plug can set up External Scripts Asynchronously.
    When I set it to ‘on’, it ask me to fill set javescript to load:

    The link is https://connect.facebook.net/en_US/fbevents.js

    What should I fill into ‘set javescript to load’?
    *fbevents.js or connect.facebook.net/en_US/fbevents.js`

    Thread Starter wtvxy

    (@wtvxy)

    To be more specificed, I am using a Plug-in named Custom Content by Country that hides some elements on my home page accordign to i p& country. I diasble youtube video block for Chinese visitors as they are banned for Youtube.

    CBC is the short code of Custom Content by Country.
    vc_row are code of visual composer.

    [vc_row][vc_column offset=”vc_hidden-xs”][CBC show=”n” country=”cn”][rev_slider slidertitle=”Slider 1″ alias=”slider-1″][/CBC][/vc_column][/vc_row]

    Thread Starter wtvxy

    (@wtvxy)

    OK.
    One more question:

    How to use shortcode to specify shortcode pairs. Your document only mention use esi like [esi cache=”private” vc_row]

    But I have a shortcode pair[vc_row] contents [/vc_row]
    only modify [vc_row] to [esi cache=”private” vc_row] will leave ‘[/vc_row]’ unpaired and does not work.

    Thread Starter wtvxy

    (@wtvxy)

    Oh. I do not want to disable my CDN. I pay 20$ for it everymonth.
    I try this but it does not work:
    https://titanwolf.org/Network/Articles/Article?AID=1f7ed2eb-6aae-433f-b878-c05793c3cf9c

Viewing 14 replies - 46 through 59 (of 59 total)