Socket
Socket
Sign inDemoInstall

send

Package Overview
Dependencies
5
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

5

History.md

@@ -0,1 +1,6 @@

0.4.1 / 2014-06-02
==================
* Send `max-age` in `Cache-Control` in correct format
0.4.0 / 2014-05-27

@@ -2,0 +7,0 @@ ==================

2

lib/send.js

@@ -584,3 +584,3 @@

if (!res.getHeader('Date')) res.setHeader('Date', new Date().toUTCString());
if (!res.getHeader('Cache-Control')) res.setHeader('Cache-Control', 'public, max-age=' + (this._maxage / 1000));
if (!res.getHeader('Cache-Control')) res.setHeader('Cache-Control', 'public, max-age=' + Math.floor(this._maxage / 1000));
if (!res.getHeader('Last-Modified')) res.setHeader('Last-Modified', stat.mtime.toUTCString());

@@ -587,0 +587,0 @@

{
"name": "send",
"description": "Better streaming static file server with Range and conditional-GET support",
"version": "0.4.0",
"version": "0.4.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -28,4 +28,4 @@ "contributors": [

"istanbul": "0.2.10",
"mocha": "~1.19.0",
"should": "~3.3.2",
"mocha": "~1.20.0",
"should": "~4.0.0",
"supertest": "~0.13.0"

@@ -32,0 +32,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc