docs/middleware
Peter Bengtsson 7acccdac9b
load webhook versions at runtime instead of import-time (#24788)
* load webhook versions at runtime instead of import-time

* fix tests
2022-01-28 18:27:00 +00:00
..
contextualizers load webhook versions at runtime instead of import-time (#24788) 2022-01-28 18:27:00 +00:00
redirects use 302 when redirecting from enterprise-server@latest to enterprise-server@<version> (#24494) 2022-01-21 17:10:09 +00:00
README.md
abort.js statsd increments on middleware.abort and middleware.timeout (#23003) 2021-11-19 12:04:54 -05:00
archived-enterprise-versions-assets.js aggressive cache-control on archived redirects (#23091) 2021-11-30 13:17:17 +00:00
archived-enterprise-versions.js cache archived enterproxy proxy responses much longer (#23456) 2021-12-08 19:55:12 +00:00
asset-preprocessing.js cache asset images more aggressively (#23553) 2021-12-10 13:01:48 +00:00
block-robots.js
cache-control.js 24h cache all internal redirects without language prefix (#23354) 2021-12-03 21:51:04 +00:00
catch-bad-accept-language.js
categories-for-support.js cache /categories.json (#23635) 2021-12-13 21:30:38 +00:00
connect-datadog.js Use the same tags across connect-datadog and hot-shots (#24741) 2022-01-27 21:31:35 +00:00
context.js faster contextualize() by doing things once (#23526) 2021-12-09 16:04:56 +00:00
cookie-parser.js
cors.js
csp.js don't allow data: in script-src (#24730) 2022-01-27 18:28:00 +00:00
csrf.js
detect-language.js fix: detect language error on /_next/data/ input (#22419) 2021-10-26 21:03:47 +00:00
events.js use got to send to Hydro (#23286) 2021-12-02 04:30:44 +00:00
featured-links.js Add support for videos to landing pages (#23801) 2021-12-17 11:09:00 -06:00
find-page.js use 302 when redirecting from without language prefix (#23409) 2021-12-07 14:07:11 +00:00
halt-on-dropped-connection.js
handle-csrf-errors.js
handle-errors.js improve test debugging and loading of cached redirects json file (#23584) 2021-12-13 16:20:05 +00:00
handle-invalid-paths.js add more invalid paths for /_next/data (#22423) 2021-10-26 23:04:31 +00:00
handle-next-data-path.js
healthz.js Add /healthz endpoint for liveness / readiness probe (#23716) 2021-12-14 21:24:10 +00:00
index.js wrap 'rest' middleware in asyncMiddleware (#24636) 2022-01-25 23:10:18 +00:00
learning-track.js Only interested in current version's guides (#22535) 2021-11-02 12:04:04 -05:00
loaderio-verification.js
next.js Next v12 (#24082) 2022-01-07 18:34:10 +00:00
package.json
rate-limit.js Bump express-rate-limit from 5.5.1 to 6.0.4 (#24046) 2022-01-18 20:02:59 +00:00
record-redirect.js use got to send to Hydro (#23286) 2021-12-02 04:30:44 +00:00
render-page.js Cache all pages in-memory (#24555) 2022-01-24 18:39:25 +00:00
req-utils.js
robots.js Robots update (#23046) 2021-11-23 18:56:05 +00:00
search.js Fix exclusion of English search indexes (#24501) 2022-01-21 17:00:30 +00:00
set-fastly-cache-headers.js
set-fastly-surrogate-key.js cache asset images more aggressively (#23553) 2021-12-10 13:01:48 +00:00
spot-content-flaws.js spot-content-flaws middleware (#23451) 2021-12-15 20:21:15 +00:00
timeout.js too often we don't know the path of 503'ing requests (#23744) 2021-12-15 17:25:32 +00:00
trigger-error.js

README.md

Middleware

Each file in this directory exports an Express Middleware function.

For more info, see https://expressjs.com/en/guide/using-middleware.html

Subdirectories

There are subdirectories for different types of middleware: