/StaticServerDelay

Simple preconfigured web server with possibility to delay static files for webperformance testing

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Static Server Delay

Why

Simple, pre configured, express based web server with support of delaying static resources. Allows general and individual delay rules for easier web performance testing

Install

npm ci

Start

npm run dev

Features

  • General delay for all static files:
{ "defaultDelay": 1000 }
  • Delaying individual files (overrides general delay rule):
{
  "delays": {
    "/styles.css": 3000,
    "/javascript.js": 3000
  }
}

Disclaimer

The code designed for the experimental purposes only and should not be used in production