docs/middleware
Peter Bengtsson a39614fdcf
remove supertest dependency (#28572)
* remove supertest dependency

* remove bad test
2022-06-16 15:56:41 +00:00
..
contextualizers memoize reading lib/graphql/static/schema*.json files (#28443) 2022-06-13 18:21:22 +00:00
redirects fix external redirects (#28063) 2022-06-02 02:06:29 +00:00
README.md
abort.js statsd increments on middleware.abort and middleware.timeout (#23003) 2021-11-19 12:04:54 -05:00
anchor-redirect.js remove stray console log (#27440) 2022-05-03 15:30:03 -04:00
archived-asset-redirects.js archived asset redirects (#25025) 2022-02-04 16:32:01 +00:00
archived-enterprise-versions-assets.js support archived enterprise assets (#25224) 2022-02-11 15:58:05 -05:00
archived-enterprise-versions.js understanding when the archived fallback redirects are used (#28128) 2022-05-31 18:27:44 +00:00
asset-preprocessing.js cache asset images more aggressively (#23553) 2021-12-10 13:01:48 +00:00
block-robots.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
build-info.js expose build SHA (#27542) 2022-05-11 19:14:30 +00:00
cache-control.js serve /apple-touch-icon.png (#25371) 2022-02-15 21:35:08 +00:00
cache-full-rendering.js correct statsd prefix for cache full rendering (#27983) 2022-05-25 10:53:09 -04:00
catch-middleware-error.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
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 unbreak thinking the site's in AIRGAP mode (#24863) 2022-02-01 14:30:14 +00:00
cookie-parser.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
csrf.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
detect-language.js fast root redirect (#27925) 2022-05-23 21:36:58 +00:00
events.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
fast-head.js fast HEAD requests (#27672) 2022-05-13 14:46:57 +00:00
fast-root-redirect.js fast root redirect (#27925) 2022-05-23 21:36:58 +00:00
fastly-behavior.js Update Fastly test middleware to run in staging ONLY. 2022-06-02 17:19:53 -06:00
fastly-cache-test.js Update Fastly test middleware to run in staging ONLY. 2022-06-02 17:19:53 -06:00
favicons.js serve /apple-touch-icon.png (#25371) 2022-02-15 21:35:08 +00:00
featured-links.js Add support for videos to landing pages (#23801) 2021-12-17 11:09:00 -06:00
find-page.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
halt-on-dropped-connection.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
handle-csrf-errors.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
handle-errors.js remove supertest dependency (#28572) 2022-06-16 15:56:41 +00:00
handle-invalid-paths.js let front door handle invalid paths (#27954) 2022-05-24 18:30:05 +00:00
handle-next-data-path.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
healthz.js Add /healthz endpoint for liveness / readiness probe (#23716) 2021-12-14 21:24:10 +00:00
helmet.js Update to helmet 5 (#28488) 2022-06-14 21:43:25 +00:00
index.js Update to helmet 5 (#28488) 2022-06-14 21:43:25 +00:00
learning-track.js redirect_from might not exist (#26158) 2022-03-14 18:26:51 +00:00
next.js Next v12 (#24082) 2022-01-07 18:34:10 +00:00
overload-protection.js increase overload protection max delay to 500ms (#27912) 2022-05-24 00:42:59 +00:00
package.json Migrate CommonJS to ESM (#20301) 2021-07-14 13:49:18 -07:00
record-redirect.js don't record temporary redirects (#25668) 2022-02-25 13:45:31 -05:00
remote-ip.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
render-page.js put the full plan name in the page titles (#28450) 2022-06-16 13:29:23 +00:00
req-utils.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
robots.js Robots update (#23046) 2021-11-23 18:56:05 +00:00
search.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
set-fastly-cache-headers.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
set-fastly-surrogate-key.js use manual surrogate key for nextjs static assets (#25096) 2022-02-08 00:01:38 +00:00
static-asset-caching.js use manual surrogate key for nextjs static assets (#25096) 2022-02-08 00:01:38 +00:00
timeout.js don't fail on posting comment from English link checker (#28059) 2022-05-31 18:05:39 +00:00
trailing-slashes.js `/en/` permanent redirects to `/en` should be CDN cacheable (#27976) 2022-05-25 13:51:16 +00:00
trigger-error.js Upgrade Primer CSS to version 17, removing marketing styles (#20965) 2021-08-31 14:49:39 -07:00

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: