Socket
Socket
Sign inDemoInstall

express-disk-cache

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-disk-cache - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

middleware.js

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

2

package.json
{
"name": "express-disk-cache",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "CC0",

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