• Resolved Pratham

    (@pratham2003)


    Hi,

    We are seeing a random redirect on a website similar to an fix described in version 0.13.0 changelog.
    Fixed caching of query-string normalization redirects, no longer cached when cache key is normalized by accept querystring arguments, caused redirect loop

    e.g. For the URL https://example.com, once in a 1-3 days, the website starts doing a redirect loop to the same URL.
    e.g.
    https://example.com —> https://example.com?utm_campaign=xyz –loop–> https://example.com?utm_campaign=xyz

    This stops if we purge the page cache for homepage.

    We are using the latest version of W3TC 2.1.0.
    Redis for page cache (Redis DB ID 1).
    Redis for object cache (Redis DB ID 2).
    For Page Cache, we have specified following as ‘Accepted query strings:’ to optimize the page cache for marketing parameters.

    utm_source
    utm_medium
    utm_content
    utm_terms
    utm_term
    utm_keyword
    utm_campaign
    utm_campaignname
    gclid
    dclid
    fbclid
    adgroupid
    network
    creative
    utm_adset
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pratham2003

    Thank you for your inquiry and I am happy to assist you with this.
    This is related to the queries you want to cache. It’s not recommended to cache query strings and specifically not UTM campaigns so you should remove those from caching.
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Unexpected redirects related to page cache?’ is closed to new replies.