APO not caching URLs with query strings – expected behavior?
-
Hi,
I’m trying to understand if this is expected behavior with Cloudflare APO for WordPress.
I have WooCommerce product URLs with query strings, for example: https://example.com/product/product-name?size=1kg
These URLs are used in Google Merchant, so they receive real traffic and should ideally be cached.
I created a Cache Rule in Cloudflare that matches the exact query string (size=1kg) and set the request as eligible for cache, with a custom TTL.
What I’m seeing:
– Most of the time (~95%), these requests bypass cache
– In a few cases, they are cached
– When the ASN is Google (likely Google crawling Merchant URLs), it always bypasses cacheIt also looks like the Cache Rule is often not triggered at all.
At this point I’m wondering:
– Is this expected with APO when query strings are present?
– Does APO override or ignore Cache Rules in this scenario?
– Is there any recommended way to cache these URLs while keeping APO enabled?We need these URLs to be served from cache for performance reasons, so I’d like to understand what the correct approach is.
Thanks.
You must be logged in to reply to this topic.