Docs / Cache / Ignore Query Strings from Caching

Ignore Query Strings from Caching

When there is a query string in the URL, FlyingPress don't cache it. Instead, we optimize the page on the fly. This is because some query strings might change the content or functionality of the page.

FlyingPress by default ignores the following query strings and deliver cached page:

  • age-verified
  • ao_noptimize
  • usqp
  • cn-reloaded
  • sscid
  • ef_id
  • s_kwcid
  • _bta_tid
  • _bta_c
  • dm_i
  • fb_action_ids
  • fb_action_types
  • fb_source
  • fbclid
  • utm_id
  • utm_source
  • utm_campaign
  • utm_medium
  • utm_expid
  • utm_term
  • utm_content
  • _ga
  • gclid
  • campaignid
  • adgroupid
  • adid
  • _gl
  • gclsrc
  • gdfms
  • gdftrk
  • gdffi
  • _ke
  • trk_contact
  • trk_msg
  • trk_module
  • trk_sid
  • mc_cid
  • mc_eid
  • mkwid
  • pcrid
  • mtm_source
  • mtm_medium
  • mtm_campaign
  • mtm_keyword
  • mtm_cid
  • mtm_content
  • msclkid
  • epik
  • pp
  • pk_source
  • pk_medium
  • pk_campaign
  • pk_keyword
  • pk_cid
  • pk_content
  • redirect_log_mongo_id
  • redirect_mongo_id
  • sb_referer_host
  • ref

For example, a request to https://your-site.com/?ref=google.com will deliver the cached page.

But if you've any other query string that has to be ignored, simply add it to "Ignore Query Strings" under Cache settings.

Let's say you have an ad campaign running in Google ads with URL https://your-site.com/?ad_campaign=123, add "ad_campaign to the "Ignore Query Strings"