You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,11 +41,15 @@ You can also set a few settings with the middleware to control the header:
41
41
```js
42
42
app.use(yes({
43
43
maxAge:86400, // defaults `86400`
44
-
includeSubdomains:true, // defaults `true`
44
+
includeSubDomains:true, // defaults `true`
45
45
preload:true// defaults `true`
46
46
}));
47
47
```
48
48
49
+
`includeSubDomains` is the canonical option name. For backwards
50
+
compatibility, `includeSubdomains` is also accepted, and both spellings
51
+
default to `true`.
52
+
49
53
### Ignoring specific requests
50
54
51
55
In some cases, you may want to ignore a request and not force the redirect. You can use the `ignoreFilter` option to opt out of redirects on a case by case basis. This is useful if you want to ignore a specific route:
0 commit comments