What's the Difference Between Excluded URLs and Ignored Parameters?

Excluded URLs and Ignored Parameters work quite differently.

Excluded URLs

Each line in the Excluded URLs field is matched against the page URL and if any line matches, then NitroPack does not serve cache for this page.

Ignored Parameters

Take this URL, for example:
https://example.com/special-offers?search=iphone&sort=price

The names of the URL parameters are "search" and "sort" (note that the "=" sign is not part of the names of the URL parameters).

Each line in the Ignored Parameters section is tested against the names of the URL parameters. If any URL parameter matches the list of ignored parameters, NitroPack treats the request as if it was made to a page without this parameter.

So in the example URL above, if "search" and "sort" are configured as ignored parameters, NitroPack will treat the URL as if it was https://example.com/special-offers.

Was this article helpful?
0 out of 1 found this helpful

Comments

2 comments
  • So if I want to exclude my blog at /blog
    I would add "blog" to ignored parameters and everything after /blog or any URL that contains "blog" will be ignored?
    Or this simply ignores the URL and caches it as if there was no parameter?

    0
  • Hi Nathan,

    In your case, you need to use the Excluded URLs feature, because /blog is a subdirectory of your website, not an URL parameter. Excluded URLs allows you to specify a list of URLs you would not like to be optimized. You can either exclude a specific page (e.g., yoursite.com/blog) or exclude all URLs containing a specific word (e.g. *blog*).

    You can find more info here:
    https://support.nitropack.io/hc/en-us/articles/1500002526722-Excluded-URLs

    On the other hand, the Ignore Parameters feature allows you to specify URL parameters that NitroPack can ignore when optimizing your website (e.g., fbclid, gclid, utm, etc.)

    "Search" and "Sort" in the following example are URL parameters:

    https://example.com/special-offers?search=iphone&sort=price

    You can find more info about the Ignored Parameters feature here:
    https://support.nitropack.io/hc/en-us/articles/1500002376521-Ignored-Parameters


    Hope this helps.

    0

Please sign in to leave a comment.