docs/middleware
Peter Bengtsson 7ead61ff01
Remove AVIF as possible dynamic format (#35185)
2023-03-01 13:01:32 +00:00
..
api Be gone old api/search/legacy (#34839) 2023-02-16 16:26:13 +00:00
contextualizers recover from Liquid rendering errors in release notes (#34484) 2023-02-07 18:41:48 +00:00
redirects Be gone old api/search/legacy (#34839) 2023-02-16 16:26:13 +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 refactor openapi scripts (#34803) 2023-02-28 22:24:38 +00:00
archived-asset-redirects.js archived asset redirects (#25025) 2022-02-04 16:32:01 +00:00
archived-enterprise-versions-assets.js Combine cache control (#33067) 2022-11-30 00:04:34 +00:00
archived-enterprise-versions.js Cache language redirects (#33028) 2022-12-01 20:01:52 +00:00
asset-preprocessing.js cache asset images more aggressively (#23553) 2021-12-10 13:01:48 +00:00
block-robots.js don't get available languages from session (#29715) 2022-08-08 11:13:27 -04:00
build-info.js Combine cache control (#33067) 2022-11-30 00:04:34 +00:00
cache-control.js Implement stale-if-error via response header (#33253) 2022-12-08 15:51:38 +00:00
catch-middleware-error.js wrap async middlewares correctly (#28030) 2022-06-01 15:13:23 +00:00
categories-for-support.js don't use encodeEntities in any rendering (#34201) 2023-01-26 17:06:46 +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 Create function to allow a reusable to link current article in a different docs version (#34273) 2023-02-02 09:30:34 +00:00
cookie-parser.js Remove `import x` statements (#20594) 2021-07-29 20:28:30 +00:00
detect-language.js Use zh as language code instead of cn (#33560) 2022-12-14 19:10:05 +00:00
dynamic-assets.js Remove AVIF as possible dynamic format (#35185) 2023-03-01 13:01:32 +00:00
fast-head.js Combine cache control (#33067) 2022-11-30 00:04:34 +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 Remove cacheControlFactory export (#33255) 2022-12-06 20:26:36 +00:00
featured-links.js remove encodeEntities on featured link cards (#33935) 2023-01-17 13:19:28 +00:00
find-page.js Run and test server with test fixture root (#33816) 2023-02-06 19:29:45 +00:00
halt-on-dropped-connection.js Pretty format (#20352) 2021-07-14 14:35:01 -07:00
handle-errors.js catch typos near 'AUTOTITLE' (#34493) 2023-02-07 17:22:44 +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 Combine cache control (#33067) 2022-11-30 00:04:34 +00:00
helmet.js allow any frame ancestor in dev (#34109) 2023-01-24 19:43:25 +00:00
index.js Stop recording redirects in Hydro (#34746) 2023-02-15 15:40:03 +00:00
learning-track.js don't use encodeEntities in any rendering (#34201) 2023-01-26 17:06:46 +00:00
next.js 404 on any /_next/image request (#31052) 2022-09-22 15:55:30 -04:00
remote-ip.js Combine cache control (#33067) 2022-11-30 00:04:34 +00:00
render-page.js Remove support for `miniTocMaxHeadingLevel` (#34758) 2023-02-17 16:29:02 +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
set-fastly-surrogate-key.js stagger the default surrogate-key by language (#33202) 2022-12-06 20:26:06 +00:00
static-asset-caching.js correct Surrogate-Key for static manifest assets (#33735) 2023-01-04 17:56:15 +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 Combine cache control (#33067) 2022-11-30 00:04:34 +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: