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

superstatic

Package Overview
Dependencies
Maintainers
1
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superstatic - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

lib/server/middleware/cache_control.js

@@ -24,5 +24,5 @@ var path = require('path');

if (!matched) res.setHeader('Cache-Control', 'public, max-age=86400');
if (!matched) res.setHeader('Cache-Control', 'public, max-age=3600');
next();
};
{
"name": "superstatic",
"version": "0.4.0",
"version": "0.4.1",
"description": "Superstatic: a static file server for fancy apps",

@@ -5,0 +5,0 @@ "main": "lib/superstatic.js",

@@ -39,4 +39,4 @@ var setup = require('./_setup');

cacheControl(this.req, this.res, this.next);
expect(this.res.setHeader.calledWith('Cache-Control', 'public, max-age=86400')).to.be(true);
expect(this.res.setHeader.calledWith('Cache-Control', 'public, max-age=3600')).to.be(true);
});
})
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