mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
20
node_modules/dns-prefetch-control/README.md
generated
vendored
Normal file
20
node_modules/dns-prefetch-control/README.md
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
DNS prefetch control header for Express
|
||||
=======================================
|
||||
[](https://travis-ci.org/helmetjs/dns-prefetch-control)
|
||||
|
||||
This middleware lets you set the `X-DNS-Prefetch-Control` to control browsers' DNS prefetching. Read more about it [on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Controlling_DNS_prefetching) and [on Chromium's docs](https://dev.chromium.org/developers/design-documents/dns-prefetching).
|
||||
|
||||
Usage:
|
||||
|
||||
```js
|
||||
const dnsPrefetchControl = require('dns-prefetch-control')
|
||||
|
||||
// Set X-DNS-Prefetch-Control: off
|
||||
app.use(dnsPrefetchControl())
|
||||
|
||||
// Set X-DNS-Prefetch-Control: off
|
||||
app.use(dnsPrefetchControl({ allow: false }))
|
||||
|
||||
// Set X-DNS-Prefetch-Control: on
|
||||
app.use(dnsPrefetchControl({ allow: true }))
|
||||
```
|
Reference in New Issue
Block a user