Skip to content

Query params

This page will show you steps to configure query-parameter based condition. These then can be used at Query Filters in Rules section.

Typical use-case is, you would want to cache and serve-from cache while ignoring the marketing/tracking query parameters (e.g. utm_, fbclid, gclid etc.). Which will also create less cache-variations, and improve the cache-HIT percentage.

Note: For demo purpose, we will be using example.com domain as an example.

Prerequisite

  1. You must have a domain configured on Nitrogen.

Steps

  1. Click on Settings menu, and open Query Params tab.
    Step

  2. Create condition by clicking on Create button.
    You will now be taken to a screen to provide query-parameter condition details.

    1. Group Name: Provide short name about the query-parameter condition
      For example, Enter All Query Params.

    2. Query Param Name: Enter query-parameter name or regex.
      For example, Enter.*
      Note: query-parameters name is matched as regex. Therefore all the query-parameters with name matching given regex will match here. For absolute names you can use ^ and \$ in regex e.g. ^shopid$

    3. Match if query param is not present: Switch this flag on if you only wish to match when given query-parameter is not present.
      Enable it in this case for now.
      Step

  3. Click on Save button. The configured pattern will be showed in Query Params list.



Notes