New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

etagserver

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

etagserver

add etag for dynamic request

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

ETag Server

给动态接口加上etag

安装

$ npm install --save etagserver

DEMO

	
var ETagServer = require("etagserver");


ETagServer(3000, {

	// redis config
	redis: { 
		host: "127.0.0.1",
		port: 6379
	},

	// target server HOST
	targetHost: "182.92.26.17",

	expire: 100 // (optional) 如果配置,则缓存 100秒,不配置则是实时监测 内容变化
});

// 浏览器打开 http://127.0.0.1:3000/V2/3216739?callback=system.tv&pageNo=3&pageSize=1
// 第二次 304

FAQs

Package last updated on 30 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts