connect-static
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -21,2 +21,3 @@ var zlib = require('zlib'); | ||
var followSymlinks = (options.followSymlinks == null) ? true : !!options.followSymlinks; | ||
var cacheControlHeader = options.cacheControlHeader || 'max-age=0, must-revalidate'; | ||
@@ -114,3 +115,3 @@ var cache = {}; | ||
resp.setHeader('Content-Type', c.mime); | ||
resp.setHeader('Cache-Control', 'max-age=0, must-revalidate'); | ||
resp.setHeader('Cache-Control', cacheControlHeader); | ||
resp.setHeader('ETag', c.hash); | ||
@@ -117,0 +118,0 @@ if (req.headers['accept-encoding'] == null) { |
{ | ||
"name": "connect-static", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "static file server middleware for connect. loads files once at startup and saves gzipped versions in memory", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,2 +38,3 @@ # static caching gzipping file server middleware for connect | ||
followSymlinks: true, | ||
cacheControlHeader: "max-age=0, must-revalidate", | ||
}; | ||
@@ -40,0 +41,0 @@ createStatic(options, function(err, middleware) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9318
208
45