docs/middleware
Peter Bengtsson d562087c45
Redirect all requests with too many query string keys (#37062)
2023-05-16 18:01:12 +00:00
..
api Move more files into src/webhooks (#36578) 2023-05-10 18:54:56 +00:00
contextualizers Fix Glossary page in Russian and Korean (#36852) 2023-05-04 16:28:18 +00:00
redirects Don't redirect q= to query= if query= already present (#36892) 2023-05-05 14:39:04 +00:00
README.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
abort.js statsd increments on middleware.abort and middleware.timeout (#23003) 2021-11-19 12:04:54 -05: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 Disk cache getRemoteJSON (#35872) 2023-03-30 14:47:55 +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 Add note about max-age header (#36130) 2023-04-03 17:36:57 +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 Move search files to src (#35822) 2023-04-03 17:14:26 +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 Default max-width for thumbnails to be 1440 (#36644) 2023-04-27 16:55:26 +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
get-remote-json.js warmup remotejson cache (#36116) 2023-05-02 11:41:43 +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-invalid-querystrings.js Redirect all requests with too many query string keys (#37062) 2023-05-16 18:01:12 +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 Support Portal & Docs Collaboration: Virtual Assistant in Docs (#35772) 2023-03-29 12:38:47 +00:00
index.js Redirect all requests with too many query string keys (#37062) 2023-05-16 18:01:12 +00:00
learning-track.js don't use encodeEntities in any rendering (#34201) 2023-01-26 17:06:46 +00:00
mock-va-portal.js Support Portal & Docs Collaboration: Virtual Assistant in Docs (#35772) 2023-03-29 12:38:47 +00:00
next.js 404 on any /_next/image request (#31052) 2022-09-22 15:55:30 -04:00
product-icons.js Preview hover cards (#34702) 2023-03-21 19:59:49 +00:00
rate-limit.js Rate limit in backend by suspicious requests (#36742) 2023-05-09 17:01:02 +00:00
reload-tree.js Reloading the site tree (#34877) 2023-03-06 19:44:59 +00: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
robots.js Cache robots.txt longer (#36907) 2023-05-08 15:13:13 +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 Update Hydro publish to send multiple events (#35696) 2023-03-22 15:55:26 +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: