Skip to content

docs: fix max-age and quote typos in response documentation#2437

Merged
bjohansebas merged 1 commit into
expressjs:mainfrom
Ayush-sharma-mx:fix/docs-typos
Jul 6, 2026
Merged

docs: fix max-age and quote typos in response documentation#2437
bjohansebas merged 1 commit into
expressjs:mainfrom
Ayush-sharma-mx:fix/docs-typos

Conversation

@Ayush-sharma-mx

Copy link
Copy Markdown
Contributor

Description

This PR fixes two small typos in the response documentation:

  1. In src/content/api/5x/api/response/index.mdx: Corrected max-age to maxAge in the res.clearCookie() alert. Express option naming uses camelCase (maxAge), so writing max-age with a hyphen was inconsistent with the surrounding docs and API.
  2. In src/content/api/4x/api/response/index.mdx: Removed an erroneous extra opening double quote in the default status code description for res.redirect() ("302 "Found"302 "Found").

Checklist

  • Documentation typo fixes only (no logic changes)

@Ayush-sharma-mx Ayush-sharma-mx requested a review from a team as a code owner July 6, 2026 20:34
@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 752635d
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a4c116cb4fd08000894edc6
😎 Deploy Preview https://deploy-preview-2437--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bjohansebas bjohansebas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@bjohansebas bjohansebas merged commit ddcc534 into expressjs:main Jul 6, 2026
16 of 17 checks passed
@krzysdz

krzysdz commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Fun fact: max-age wording was introduced in #2000 named "docs: update res.clearCookie documentation for clarity and accuracy".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants