send
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -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 @@ ================== |
@@ -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 @@ }, |
20998