<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Settings on N7 Docs</title><link>https://docs.n7.io/delivery/settings/</link><description>Recent content in Settings on N7 Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.n7.io/delivery/settings/index.xml" rel="self" type="application/rss+xml"/><item><title>Cookie conditions</title><link>https://docs.n7.io/delivery/settings/cookie/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/cookie/</guid><description>&lt;p&gt;This page will show you steps to configure cookie based condition. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would disable cache for pages when opened in preview mode.&lt;/br&gt;
Here, we can achieve it by disabling caching when we have Shopify&amp;rsquo;s &amp;lsquo;preview_theme&amp;rsquo; cookie is present.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.
&lt;/br&gt;Here, we will be using &lt;code&gt;preview_theme&lt;/code&gt; cookie. You can use any relevant cookie&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;</description></item><item><title>Country conditions</title><link>https://docs.n7.io/delivery/settings/country/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/country/</guid><description>&lt;p&gt;This page will show you steps to configure conditions based on country from where request is originated These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would want to set country based redirections.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example. Here, we will be redirecting all requests from US to /us/&lt;/em&gt;.*&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Settings&lt;/code&gt; menu, and open &lt;code&gt;Country Conditions&lt;/code&gt; tab.&lt;br/&gt;
&lt;img src="https://docs.n7.io/assets/images/common/conditions/country/1.png" alt="Step" &gt;
&lt;/p&gt;</description></item><item><title>Header conditions</title><link>https://docs.n7.io/delivery/settings/header/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/header/</guid><description>&lt;p&gt;This page will show you steps to configure header based condition. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would want to pass all requests from bots to &lt;a href="https://prerender.io/" target="_blank" rel="noreferrer"&gt;https://prerender.io/&lt;/a&gt;
.&lt;/br&gt;
Here, we can achieve it by identifying all Bot requests by value of user-agent request header.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: Header conditions will work only on &lt;b&gt;request&lt;/b&gt;-headers.&lt;/br&gt;
For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example. Here, we will only be using &lt;code&gt;googlebot&lt;/code&gt; and &lt;code&gt;bingbot&lt;/code&gt; user-agent for simplicity.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;</description></item><item><title>IP Addresses</title><link>https://docs.n7.io/delivery/settings/ip/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/ip/</guid><description>&lt;p&gt;This page will show you steps to configure conditions based on request IP. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would want to block the IPs you found making malicious requests to your site.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example. Here, we will be blocking all requests from a blacklisted IP.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Settings&lt;/code&gt; menu, and open &lt;code&gt;IP Addresses&lt;/code&gt; tab.&lt;br/&gt;
&lt;img src="https://docs.n7.io/assets/images/common/conditions/ip/1.png" alt="Step" &gt;
&lt;/p&gt;</description></item><item><title>HTTP methods</title><link>https://docs.n7.io/delivery/settings/method/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/method/</guid><description>&lt;p&gt;Here, you will find steps to configure conditions based on request method. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would want to block TRACE, PATCH, CONNECT methods for security purpose.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example. Here, we will be creating method-group of &lt;code&gt;TRACE, PATCH, CONNECT&lt;/code&gt; methods to block them.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Settings&lt;/code&gt; menu, and open &lt;code&gt;HTTP Methods&lt;/code&gt; tab.&lt;br/&gt;
&lt;img src="https://docs.n7.io/assets/images/common/conditions/method/1.png" alt="Step" &gt;
&lt;/p&gt;</description></item><item><title>Query params</title><link>https://docs.n7.io/delivery/settings/query-params/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/query-params/</guid><description>&lt;p&gt;This page will show you steps to configure query-parameter based condition. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
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.&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example. Here, we will create a query-param condition with regex pattern &lt;code&gt;(utm_|fbclid|gclid)&lt;/code&gt; to be used to ignore them while caching/serving-from-cache.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;</description></item><item><title>URL patterns</title><link>https://docs.n7.io/delivery/settings/url-pattern/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/settings/url-pattern/</guid><description>&lt;p&gt;This page will show you steps to configure request patterns. These then can be used at multiple places such as rewrite/caching/blocking rules.
&lt;/br&gt;&lt;/br&gt;
Typical use-case is, you would want to proxy a set of URLs to a certain endpoint, and then set caching specific to it.&lt;br/&gt;
e.g. You can proxy image requests to your static domain, and set 90 days caching for them. (This way also helps avoiding extra OPTIONS calls made by browser for the request being for other domain)
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.&lt;/br&gt;
Here, we will be defining a URL pattern for relative requests of &lt;code&gt;global-uploads.webflow.com&lt;/code&gt; domain - to proxy them to that domain itself.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;</description></item></channel></rss>