diff --git a/files/en-us/glossary/http_header/index.md b/files/en-us/glossary/http_header/index.md index d8998c61bc13d02..212fac04d6f7ed3 100644 --- a/files/en-us/glossary/http_header/index.md +++ b/files/en-us/glossary/http_header/index.md @@ -5,7 +5,7 @@ page-type: glossary-definition sidebar: glossarysidebar --- -An **HTTP header** is a field of an HTTP request or response that passes additional context and metadata about the request or response. For example, a request message can use headers to indicate its preferred media formats, while a response can use header to indicate the media format of the returned body. Headers are case-insensitive, begin at the start of a line and are immediately followed by a `':'` and a header-dependent value. The value finishes at the next CRLF or at the end of the message. +An **HTTP header** is a field of an HTTP request or response that passes additional context and metadata about the request or response. For example, a request message can use headers to indicate its preferred media formats, while a response can use headers to indicate the media format of the returned body. Headers are case-insensitive, begin at the start of a line and are immediately followed by a `':'` and a header-dependent value. The value finishes at the next CRLF or at the end of the message. The HTTP and Fetch specifications refer to a number of header categories, including: diff --git a/files/en-us/learn_web_development/extensions/server-side/first_steps/web_frameworks/index.md b/files/en-us/learn_web_development/extensions/server-side/first_steps/web_frameworks/index.md index 923a66619ee335e..92b3fa60edd3ddf 100644 --- a/files/en-us/learn_web_development/extensions/server-side/first_steps/web_frameworks/index.md +++ b/files/en-us/learn_web_development/extensions/server-side/first_steps/web_frameworks/index.md @@ -184,7 +184,7 @@ Some of the factors that may affect your decision are: - _Whether or not the framework encourages good development practices_: For example, a framework that encourages a [Model-View-Controller](/en-US/docs/Glossary/MVC) architecture to separate code into logical functions will result in more maintainable code than one that has no expectations on developers. Similarly, framework design can have a large impact on how easy it is to test and re-use code. - **Performance of the framework/programming language:** Usually "speed" is not the biggest factor in selection because even relatively slow runtimes like Python are more than "good enough" for mid-sized sites running on moderate hardware. The perceived speed benefits of another language, e.g., C++ or JavaScript, may well be offset by the costs of learning and maintenance. -- **Caching support:** As your website becomes more successful then you may find that it can no longer cope with the number of requests it is receiving as users access it. At this point you may consider adding support for caching. Caching is an optimization where you store all or part of a web response so that it does not have to be recalculated on subsequent requests. Returning a cached response is much faster than calculating one in the first place. Caching can be implemented in your code or in the server (see [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)). Web frameworks will have different levels of support for defining what content can be cached. +- **Caching support:** As your website becomes more successful, you may find that it can no longer cope with the number of requests it is receiving as users access it. At this point you may consider adding support for caching. Caching is an optimization where you store all or part of a web response so that it does not have to be recalculated on subsequent requests. Returning a cached response is much faster than calculating one in the first place. Caching can be implemented in your code or in the server (see [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy)). Web frameworks will have different levels of support for defining what content can be cached. - **Scalability:** Once your website is fantastically successful you will exhaust the benefits of caching and even reach the limits of _vertical scaling_ (running your web application on more powerful hardware). At this point you may need to _scale horizontally_ (share the load by distributing your site across a number of web servers and databases) or scale "geographically" because some of your customers are based a long way away from your server. The web framework you choose can make a big difference on how easy it is to scale your site. - **Web security:** Some web frameworks provide better support for handling common web attacks. Django for example sanitizes all user input from HTML templates so that user-entered JavaScript cannot be run. Other frameworks provide similar protection, but it is not always enabled by default. diff --git a/files/en-us/web/api/performancemeasure/detail/index.md b/files/en-us/web/api/performancemeasure/detail/index.md index bd88841d80154d4..67c16c2a483d6f0 100644 --- a/files/en-us/web/api/performancemeasure/detail/index.md +++ b/files/en-us/web/api/performancemeasure/detail/index.md @@ -8,11 +8,11 @@ browser-compat: api.PerformanceMeasure.detail {{APIRef("Performance API")}}{{AvailableInWorkers}} -The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using {{domxref("Performance.measure","performance.measure()")}}). +The read-only **`detail`** property returns arbitrary metadata that was included in the measure upon construction (when using {{domxref("Performance.measure","performance.measure()")}}). ## Value -Returns the value it was set to (from `markOptions` of {{domxref("Performance.measure","performance.measure()")}}). +Returns the value it was set to (from `measureOptions` of {{domxref("Performance.measure","performance.measure()")}}). ## Examples diff --git a/files/en-us/web/api/vttcue/positionalign/index.md b/files/en-us/web/api/vttcue/positionalign/index.md index ac1394da1243460..cd7d03b8a6dc57c 100644 --- a/files/en-us/web/api/vttcue/positionalign/index.md +++ b/files/en-us/web/api/vttcue/positionalign/index.md @@ -23,7 +23,7 @@ A string containing one of the following values: - `"auto"` - : Automatic alignment, which depends on the text alignment of the cue, interpreted as follows: - **line-left:** if the text alignment is left, the cue is using a LTR language and the text alignment is start, or the cue is using a RTL language and the text alignment is end. - - **line-right:** if the text alignment is right, the cue is using a RTL language and the text alignment is start, or the cue is using a LTR language and the text-alignment is end. + - **line-right:** if the text alignment is right, the cue is using a RTL language and the text alignment is start, or the cue is using a LTR language and the text alignment is end. - **center:** if there is no text alignment position set. ## Examples diff --git a/files/en-us/web/javascript/reference/regular_expressions/character_escape/index.md b/files/en-us/web/javascript/reference/regular_expressions/character_escape/index.md index 4661cee0985d623..6e662fbe44ea111 100644 --- a/files/en-us/web/javascript/reference/regular_expressions/character_escape/index.md +++ b/files/en-us/web/javascript/reference/regular_expressions/character_escape/index.md @@ -41,7 +41,7 @@ The following character escapes are recognized in regular expressions: - : Represents the control character with value equal to the letter's character value modulo 32. For example, `\cJ` represents line break (`\n`), because the code point of `J` is 74, and 74 modulo 32 is 10, which is the code point of line break. Because an uppercase letter and its lowercase form differ by 32, `\cJ` and `\cj` are equivalent. You can represent control characters from 1 to 26 in this form. - `\0` - : Represents the U+0000 NUL character. Cannot be followed by a digit (which makes it a [legacy octal escape](/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features#escape_sequences) sequence). -- `\^`, `\$`, `\\`, `\.` `\*`, `\+`, `\?`, `\(`, `\)`, `\[`, `\]`, `\\{`, `\\}`, `\|`, `\/` +- `\^`, `\$`, `\\`, `\.`, `\*`, `\+`, `\?`, `\(`, `\)`, `\[`, `\]`, `\\{`, `\\}`, `\|`, `\/` - : Represents the character itself. For example, `\\` represents a backslash, and `\(` represents a left parenthesis. These are [syntax characters](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Literal_character) in regexes (`/` is the delimiter of a regex literal), so they require escaping unless in a [character class](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class). - `\xHH` - : Represents the character with the given hexadecimal Unicode code point. The hexadecimal number must be exactly two digits long.