Skip to content

microadam/ua-compatible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ua-compatible

Set the X-UA-Compatible header in an express middleware.

Forces IE to use the most up to date rendering engine possible, default to chrome-frame if installled

build status

Installation

npm install ua-compatible --save

Usage

var express = require('express')
var app = express()
var uaCompatible = require('ua-compatible')

app.use(uaCompatible)

app.get('/', function (req, res) {
  res.get('X-UA-Compatible') // === 'IE=edge,chrome=1'
})

app.listen(3000)

Credits

Adam Duncan

About

Set the X-UA-Compatible header in an express middleware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published