If you ever need fetch whole page via XHR, we strongly recommend use cached version of page. Let me explain it in examples below.
Use https://multi.shoptet.com/cache/store-rating/ instead of https://multi.shoptet.com/store-rating/
(see missing /cache/
in url).
For czech version of page, use https://multi.shoptet.com/cache/cs/hodnoceni-obchodu/.
For best performance please make sure you have trailing /
in request URL.
For articles from particular category, use https://multi.shoptet.com/cache/blog/ instead of https://multi.shoptet.com/blog/
– again, /cache/
makes the important difference.
Articles from same category in Czech language you’ll find on https://multi.shoptet.com/cache/cs/blog/.
For best performance please make sure you have trailing /
in request URL.
As you can see in examples above, our cache supports multiple languages. E-shop used in examples has English set as default language. Therefore, if you want to fetch page in default language, you needn’t to use /en/
in url. You have to use /LANGUAGE_CODE/
(in our example /cs/
) only for pages in non-default language.