express-disk-cache
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -30,3 +30,3 @@ var Buffer = require('safe-buffer').Buffer; | ||
var called_end = false; | ||
var stream, final_path, tmp_path, tmp_name; | ||
var stream, final_path, tmp_path, tmp_name, protocol; | ||
var content_type, cache_control, has_max_age, cache_age; | ||
@@ -171,2 +171,3 @@ var _write = res.write; | ||
cache_age = has_max_age ? 'permanent' : 'temporary'; | ||
protocol = req.headers['x-forwarded-proto'] || req.protocol; | ||
@@ -180,3 +181,3 @@ // We create a directory structure to make life as simple as | ||
req.hostname, // hostname allows the static file server to | ||
req.protocol, // protocol to allow us to preserve HTTP -> HTTPS redirects | ||
protocol, // protocol to allow us to preserve HTTP -> HTTPS redirects | ||
cache_age, // cache_age, either permanent or temporary | ||
@@ -183,0 +184,0 @@ req.originalUrl |
{ | ||
"name": "express-disk-cache", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "CC0", |
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
215
21260
7