Query parameter inside URL in cache
-
Hello,
I am experiencing alot of misses in my cache and it causes long average response time from Google and I would like to know how to fix it.
Google is crawling a lot of URL with query parameters ( I checked the logs) to manage product variations (e.g., color, size) in URLs like the following :
https://ezstrap.fr/produit/bracelet-apple-watch-silicone-a-surface-rainuree/?attribute_pa_couleur=gris-transparent&attribute_pa_taille-de-lapple-watch=38mm-a-41mmHowever, thoses kind of URLs are not in Cache so when Google crawl my website, I have a lot of miss and it make the PHP works all the time , so long TTFB and google is not really happy about it.
As you can see , static and dynamic cache hit are pretty low :Here is the view inside the Google Search Console, (you can focus on the part circled in green as I had another hosting company before) I have 1300 ms in average (200ms is recommended by Google) :
As you can see , this is the kind of request google is having on my website. I have a lot of variations per product and I need a way to put in cache this kind of URLs :
Also, I cannot remove theses URLs from robots.txt because they are necessary inside google merchant center.
Here are my questions,
-Is there a way to cache automatically the urls of my shop with query parameters so google hit the cache directly every time its looking for a variation URLs?-Is there a way to prewarm the Edge Cache (QUIC.cloud) for variation URLs so that even the first request is a HIT?
-Can I provide a custom crawler-map.txt with all variation combinations (e.g. color+size) to ensure the urls with the query parameters are also cache ( because right now the crwaler only have normal URLs inside the Sitemap List) ?
-If I can provide a custom crawler to cache the query parameter URLs, do you know the best way to do it? ( is this a problem only me is having ? should I go for a custom coding solution or simpler solution exists? )
-Is “Google” in Guest Mode User-Agents enough for LiteSpeed to treat Googlebot as guest + cache-eligible as we can clearly see with my long average response time that the cache is not served for google?
I have been strugling with this problems for weeks so I would be really happy to have your feedback on it. Thank you.
Regards,
The topic ‘Query parameter inside URL in cache’ is closed to new replies.
