Skip to content

Commit

Permalink
remove extraneous '.'
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jul 12, 2023
1 parent 8058eec commit 30163e4
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 48 deletions.
12 changes: 6 additions & 6 deletions tests/age-parse.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default
spec_anchors: ['field.age', 'expiration.model'],
tests: [
{
name: 'HTTP cache should ignore an `Age` header with a non-numeric value.',
name: 'HTTP cache should ignore an `Age` header with a non-numeric value',
id: 'age-parse-nonnumeric',
depends_on: ['freshness-max-age-age'],
requests: [
Expand All @@ -26,7 +26,7 @@ export default
]
},
{
name: 'HTTP cache should ignore an `Age` header with a negative value.',
name: 'HTTP cache should ignore an `Age` header with a negative value',
id: 'age-parse-negative',
depends_on: ['freshness-max-age-age'],
requests: [
Expand All @@ -45,7 +45,7 @@ export default
]
},
{
name: 'HTTP cache should ignore an `Age` header with a float value.',
name: 'HTTP cache should ignore an `Age` header with a float value',
id: 'age-parse-float',
depends_on: ['freshness-max-age-age'],
requests: [
Expand Down Expand Up @@ -121,7 +121,7 @@ export default
]
},
{
name: 'HTTP cache should consider a response with a single `Age` header line `old, 0` to be stale.',
name: 'HTTP cache should consider a response with a single `Age` header line `old, 0` to be stale',
id: 'age-parse-suffix',
depends_on: ['freshness-max-age-age'],
requests: [
Expand All @@ -140,7 +140,7 @@ export default
]
},
{
name: 'HTTP cache should consider a response with a single `Age` header line `0, old` to be fresh.',
name: 'HTTP cache should consider a response with a single `Age` header line `0, old` to be fresh',
id: 'age-parse-prefix',
depends_on: ['freshness-max-age-age'],
requests: [
Expand Down Expand Up @@ -179,7 +179,7 @@ export default
]
},
{
name: 'HTTP cache should use the first line in a response with multiple `Age` header lines: `0`, `old`.',
name: 'HTTP cache should use the first line in a response with multiple `Age` header lines: `0`, `old`',
id: 'age-parse-prefix-twoline',
depends_on: ['freshness-max-age-age'],
requests: [
Expand Down
2 changes: 1 addition & 1 deletion tests/cc-response.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default
]
},
{
name: 'A HTTP cache MUST revalidate a stale response with `Cache-Control: immutable`.',
name: 'A HTTP cache MUST revalidate a stale response with `Cache-Control: immutable`',
id: 'cc-resp-immutable-stale',
browser_only: true,
requests: [
Expand Down
28 changes: 14 additions & 14 deletions tests/conditional-etag.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
spec_anchors: ['validation.model'],
tests: [
{
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag`.',
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag`',
id: 'conditional-etag-strong-respond',
kind: 'optimal',
browser_skip: true,
Expand All @@ -28,7 +28,7 @@ export default {
]
},
{
name: 'HTTP cache must include `ETag` in a `304 Not Modified`.',
name: 'HTTP cache must include `ETag` in a `304 Not Modified`',
id: 'conditional-304-etag',
depends_on: ['conditional-etag-strong-respond'],
browser_skip: true,
Expand Down Expand Up @@ -107,7 +107,7 @@ export default {
]
},
{
name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is quoted.',
name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is quoted',
id: 'conditional-etag-quoted-respond-unquoted',
kind: 'check',
depends_on: ['conditional-etag-strong-respond'],
Expand All @@ -131,7 +131,7 @@ export default {
]
},
{
name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted.',
name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted',
id: 'conditional-etag-unquoted-respond-unquoted',
kind: 'check',
depends_on: ['conditional-etag-strong-respond'],
Expand All @@ -155,7 +155,7 @@ export default {
]
},
{
name: 'HTTP cache responds to quoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted.',
name: 'HTTP cache responds to quoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted',
id: 'conditional-etag-unquoted-respond-quoted',
kind: 'check',
depends_on: ['conditional-etag-strong-respond'],
Expand All @@ -179,7 +179,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`.',
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`',
id: 'conditional-etag-weak-respond',
kind: 'optimal',
browser_skip: true,
Expand All @@ -202,7 +202,7 @@ export default {
]
},
{
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag is lowercase.',
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag is lowercase',
id: 'conditional-etag-weak-respond-lowercase',
kind: 'check',
depends_on: ['conditional-etag-weak-respond'],
Expand All @@ -226,7 +226,7 @@ export default {
]
},
{
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag uses `\\` instead of `/`.',
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag uses `\\` instead of `/`',
id: 'conditional-etag-weak-respond-backslash',
kind: 'check',
depends_on: ['conditional-etag-weak-respond'],
Expand All @@ -250,7 +250,7 @@ export default {
]
},
{
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag omits `/`.',
name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag omits `/`',
id: 'conditional-etag-weak-respond-omit-slash',
depends_on: ['conditional-etag-weak-respond'],
kind: 'check',
Expand All @@ -274,7 +274,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (first one).',
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (first one)',
id: 'conditional-etag-strong-respond-multiple-first',
kind: 'optimal',
depends_on: ['conditional-etag-strong-respond'],
Expand All @@ -298,7 +298,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (middle one).',
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (middle one)',
id: 'conditional-etag-strong-respond-multiple-second',
kind: 'optimal',
depends_on: ['conditional-etag-strong-respond'],
Expand All @@ -322,7 +322,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (last one).',
name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (last one)',
id: 'conditional-etag-strong-respond-multiple-last',
kind: 'optimal',
depends_on: ['conditional-etag-strong-respond'],
Expand Down Expand Up @@ -403,7 +403,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching strong `ETag`.',
name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching strong `ETag`',
id: 'conditional-etag-strong-generate',
kind: 'optimal',
requests: [
Expand All @@ -425,7 +425,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching weak `ETag`.',
name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching weak `ETag`',
id: 'conditional-etag-weak-generate-weak',
kind: 'optimal',
requests: [
Expand Down
6 changes: 3 additions & 3 deletions tests/conditional-lm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
spec_anchors: ['validation.model'],
tests: [
{
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with a matching `Last-Modified`.',
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with a matching `Last-Modified`',
id: 'conditional-lm-fresh',
kind: 'optimal',
browser_skip: true,
Expand All @@ -30,7 +30,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with an earlier `Last-Modified`.',
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with an earlier `Last-Modified`',
id: 'conditional-lm-fresh-earlier',
kind: 'optimal',
browser_skip: true,
Expand All @@ -55,7 +55,7 @@ export default {
]
},
{
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a stale response with a matching `Last-Modified`, after validation.',
name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a stale response with a matching `Last-Modified`, after validation',
id: 'conditional-lm-stale',
kind: 'optimal',
browser_skip: true,
Expand Down
32 changes: 16 additions & 16 deletions tests/expires-parse.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default
spec_anchors: ['field.expires'],
tests: [
{
name: 'An optimal HTTP cache reuses a response with an `Expires` that is exactly 32 bits.',
name: 'An optimal HTTP cache reuses a response with an `Expires` that is exactly 32 bits',
id: 'freshness-expires-32bit',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -26,7 +26,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with an `Expires` that is far in the future.',
name: 'An optimal HTTP cache reuses a response with an `Expires` that is far in the future',
id: 'freshness-expires-far-future',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -45,7 +45,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with a future `Expires` in obsolete RFC 850 format.',
name: 'An optimal HTTP cache reuses a response with a future `Expires` in obsolete RFC 850 format',
id: 'freshness-expires-rfc850',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -64,7 +64,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with a future `Expires` in ANSI C\'s asctime() format.',
name: 'An optimal HTTP cache reuses a response with a future `Expires` in ANSI C\'s asctime() format',
id: 'freshness-expires-ansi-c',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -83,7 +83,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (weekday).',
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (weekday)',
id: 'freshness-expires-wrong-case-weekday',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -102,7 +102,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (month).',
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (month)',
id: 'freshness-expires-wrong-case-month',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -121,7 +121,7 @@ export default
]
},
{
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (tz).',
name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (tz)',
id: 'freshness-expires-wrong-case-tz',
kind: 'optimal',
depends_on: ['freshness-expires-future'],
Expand All @@ -140,7 +140,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (UTC).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (UTC)',
id: 'freshness-expires-invalid-utc',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -158,7 +158,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (other tz).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (other tz)',
id: 'freshness-expires-invalid-aest',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -176,7 +176,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (two-digit year).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (two-digit year)',
id: 'freshness-expires-invalid-2-digit-year',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -194,7 +194,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (missing comma).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (missing comma)',
id: 'freshness-expires-invalid-no-comma',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -212,7 +212,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple spaces).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple spaces)',
id: 'freshness-expires-invalid-multiple-spaces',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -229,7 +229,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (date dashes).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (date dashes)',
id: 'freshness-expires-invalid-date-dashes',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -246,7 +246,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (time periods).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (time periods)',
id: 'freshness-expires-invalid-time-periods',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -263,7 +263,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (1-digit hour).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (1-digit hour)',
id: 'freshness-expires-invalid-1-digit-hour',
depends_on: ['freshness-expires-future'],
requests: [
Expand All @@ -280,7 +280,7 @@ export default
]
},
{
name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple lines).',
name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple lines)',
id: 'freshness-expires-invalid-multiple-lines',
depends_on: ['freshness-expires-future'],
requests: [
Expand Down
6 changes: 3 additions & 3 deletions tests/stale.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as templates from './lib/templates.mjs'
function makeStaleCheckCC (cc, sharedOnly, value) {
const shared = sharedOnly === true ? 'Shared ' : ''
return {
name: `${shared}HTTP cache must not serve stale stored response when prohibited by \`Cache-Control: ${cc}\`.`,
name: `${shared}HTTP cache must not serve stale stored response when prohibited by \`Cache-Control: ${cc}\``,
id: `stale-close-${cc}${value || ''}`,
browser_skip: sharedOnly,
depends_on: ['stale-close'],
Expand Down Expand Up @@ -56,7 +56,7 @@ export default {
]
},
{
name: 'An optimal cache serves stale stored response with [`Cache-Control: stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html).',
name: 'An optimal cache serves stale stored response with [`Cache-Control: stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html)',
id: 'stale-while-revalidate',
kind: 'optimal',
requests: [
Expand All @@ -74,7 +74,7 @@ export default {
]
},
{
name: 'HTTP cache must not serve stale stored response after the [`stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html) window.',
name: 'HTTP cache must not serve stale stored response after the [`stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html) window',
id: 'stale-while-revalidate-window',
depends_on: ['stale-while-revalidate'],
requests: [
Expand Down
Loading

0 comments on commit 30163e4

Please sign in to comment.