Avoid caching URLs with query paramters
Hello Community - I have a page with dynamic content. Based on the results from the below URLs(with query string), the content is getting displayed on the page (www.test.com/products.html) and it is working fine in author, publish and dispatcher.
https://www.test.com/pages/_jcr_content.product.json?t=2011233&Tags=abc&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2034567&Tags=def&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2912345&Tags=ghi&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2983456&Tags=jkl&Order=existing
If I directly access the page (CDN), the URL with query parameter is getting cached, i.e., I see the same content for all four sections of the page. We need to restrict the URLs with the query parameters to be cached, the results should display different results as the query parameters are different and it should not be cached.
https://www.test.com/pages/_jcr_content.product.json?t=2983456&Tags=jkl&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2983456&Tags=jkl&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2983456&Tags=jkl&Order=existing
https://www.test.com/pages/_jcr_content.product.json?t=2983456&Tags=jkl&Order=existing