litespeedtech / magento2-LiteSpeed_LiteMage

LiteMage Cache Extension for Magento 2
https://www.litespeedtech.com/products/litespeed-web-cache/litemage
Other
30 stars 10 forks source link

How to bypass some url params like GCLID from adwords #16

Closed tomekjordan closed 6 years ago

tomekjordan commented 6 years ago

HI. How to ignore some url params - like from google adwords GCLID param, page content is the same, but they just GCLID param at the end of the url How to avoid caching separately the same pages with different params?

Thanks for info - looking for solutionion for Litemage M1 and M2 Example how Amasty FPC does it in its config https://amasty.com/docs/lib/exe/fetch.php?media=full-page-cache-pages.png

T.

jacksonlst commented 6 years ago

You can try our new feature about "Drop query string" on 5.2.3 currently it is debug build and you can try the following command. /usr/local/lsws/admin/misc/lsup.sh -d -f -v 5.2.3

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:drop_query_string

It will be released very soon.

litespeedtech commented 6 years ago

this has been released. please test and confirm.

tomekjordan commented 6 years ago

HI. I see thats has been added, but configuration is totally unfriendly (htaacess)

It should be just in Litemage panel - just please add text area to input url params like: utm gclid just like any other FPC extension does

litespeedtech commented 6 years ago

litemage cache is on the server side, does not go to PHP. so even we add the config on litemage config, it will still need to update .htaccess for you. This can be added in future.

tomekjordan commented 6 years ago

Understood, but such text area with gclid, utm params would be helpful for excluding crawler from trying to crawl such pages and bypass it from using with deep crawling list build

litespeedtech commented 6 years ago

if a robot is crawling this url, it will be served from cache or hit backend and save to cache without those params.