dns-prefetch-control
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

dns-prefetch-control

Middleware to set X-DNS-Prefetch-Control header.

0.3.0  •  Published 3 months ago  •  by helmetjs  •  MIT License

DNS prefetch control header for Express

Build Status

This middleware lets you set the X-DNS-Prefetch-Control to control browsers’ DNS prefetching. Read more about it on MDN and on Chromium’s docs.

Usage:

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 }))
How do you feel about the name Devstore for this site?

Popularity

Weekly Downloads
641.0K
Stars
7

Maintenance

Development

Last ver 3 months ago
Created 4 years ago
Last commit 3 months ago
2 months between commits

Technology

Node version: 12.6.0
4.7K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

2 contributors
Evan Hahn
Maintainer, 29 commits, 1 merges
Works at Airtable
dependabot[bot]
1 commits
Adam Baldwin
Maintainer
Works at npm
dependabot
2 PRs
benhjames
1 PRs

Tags

helmet
security
express
connect
x-dns-prefetch-control
dns
prefetch
Ready for the next level?
Join Devstore's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
© 2019 Devstore, Inc.
Devstore helps developers find and use open-source packages, so they can focus on building amazing things