Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

request-favicon

honzahommer17ISC2.0.2

An express.js middleware for handling noisy favicon.ico

express, favicon, middleware, mw

readme

request-favicon

npm version npm download Build Status Greenkeeper badge

An express.js middleware for handling noisy favicon.ico

Modern browsers usually asks for favicon of the website. Having a favicon in a Web page is a good thing (normally).

However it is not always desired and sometime developers need a way to avoid the extra payload.

Nice way to handle that is to send 204 status code for /favicon.ico requests.

Install

npm install request-favicon

Example

const express = require('express');
const favicon = require('request-favicon');

const app = express();
app.use(favicon());

// Add your routes here, etc.

app.listen(3000);

License

MIT

changelog

Change Log

v2.0.1 (2019-07-02)

Full Changelog

Merged pull requests:

v2.0.0 (2019-01-29)

Full Changelog

v1.0.1 (2017-07-16)

Full Changelog

v1.0.0 (2017-07-15)

* This Change Log was automatically generated by github_changelog_generator