Google Merchant "srsltid" to be added to APO in order to serve cached content

What is the name of the domain?

xbyte.com

What is the issue you’re encountering

Pages not being served from cached when google merchant adds the url parameter srsltid

What are the steps to reproduce the issue?

Go to any product in the shopping tab of google click on it, and notice how they are now including that new url parameter.
That makes Cloudflare think it is dynamic content when it is not.

Screenshot of the error

https://www.example.com/shop and https://www.example.com/shop?id=123 are technically two separate URLs even if they return the same content. That’s why you’re seeing this behaviour.

Luckily, Cloudflare gives you control over how to handle caching in the case of query parameters: Go to CACHING -> CONFIGURATION for the zone in question, and configure Caching Level as desired.

The three options are:

  • No Query String: Only delivers files from cache when there is no query string.
  • Ignore Query String: Delivers the same resource to everyone independent of the query string.
  • Standard: Delivers a different resource each time the query string changes.

Thank you George for our reply. We want the “Standard” as we have dynamic pages based on URLs for example our product search.

The problem is we don’t have control over Google adding a URL parameter, but it should not be removed or it will ruin analytics. That is why Cloudflare has a list of exceptions. URL parameters they know are just for tracking purposes and they have them listed here:
https://developers.cloudflare.com/automatic-platform-optimization/reference/query-parameters/

Ideally it should be listed there as well.

This topic was automatically closed after 15 days. New replies are no longer allowed.