Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-static

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-static - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

3

index.js

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc