-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document request options in one place #34437
Conversation
Preview URLs
(comment last updated: 2024-07-02 14:53:20) |
Co-authored-by: Joshua Chen <[email protected]>
* upstream/main: (58 commits) Update arrow function documentation to clarify naming and assignment (mdn#34501) update fetch guide (mdn#34278) Replace alert in Learn/JavaScript/First_steps/Variables (mdn#34487) Replace alert in MDN/Writing_guidelines/Page_structures/Live_samples (mdn#34479) Fix typo (mdn#34486) Remove SVG color-profile attribute (mdn#34482) Remove SVG enable-background attribute (mdn#34483) Remove SVG kerning attribute (mdn#34475) Updated the description of `targetOrigin` to specify the intended re… (mdn#34114) Mention CSWH in WebSocket server guide (mdn#34411) Add note to CSP sandbox saying allow-top-navigation is redundant (mdn#34415) Mention navigator.languages may be truncated and Accept-Language may have fallback (mdn#34418) Remove IDB output "example", preferring live example (mdn#34464) Mention that pinch-zoom are also wheel events (mdn#34468) Mention that flex-basis is floored at min-content (mdn#34469) More content to Global object glossary (mdn#34471) Fix IDB cursor prev direction description (mdn#34463) Remove all line number references to inline code examples (mdn#34459) Remove link to notification example (mdn#34412) Replaces HTML entity glossary links/mentions with char reference (mdn#34391) ...
* origin/requestinit: Update files/en-us/web/api/requestinit/index.md
I just pushed 0f79e72 which I think means we can close #13063 in this PR. Issue #13063 has a couple of aspects:
|
@sideshowbarker , I saw you removed my review request, I wasn't sure if that was because you didn't have time to or because @Josh-Cena was reviewing already. I'd still be very happy to get your review on it but I'm also happier about getting less detailed review since #34278 got merged :). |
Yeah, that was the only reason — because it seemed like Josh was already on it.
I'll go ahead and do a review. It's always possible more eyes might catch something that otherwise for overlooked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks great to me — modulo the suggestions I made about the cache
property
Co-authored-by: sideshowbarker <[email protected]>
Per discussion in https://github.com/orgs/mdn/discussions/694.
I've been through the
fetch()
andRequest()
pages, incorporating what seemed useful, correcting what seem to be some errors[1] and adding some more detail. Also being more consistent about describing default values.I think in some ways this goes alongside #34278, in that it would be nice to point to a usage guide for some of these options.
[1] e.g. that
no-referrer
passed intoreferrer
works to omit theReferer
header, that seems to be a confusion withreferrerPolicy
, or that "the Origin header is not set on Fetch requests with a method of HEAD or GET", which only seems to be true for same-origin requests.Fixes #33356.
Fixes #13063.