Excluded URLs and Ignored Parameters work quite differently.
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.
Take this URL, for example:
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.
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?
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:
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:
You can find more info about the Ignored Parameters feature here:
Hope this helps.
Article is closed for comments.