Skip to content

Commit

Permalink
check whether date is added when there is server delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Oct 13, 2023
1 parent f9b1b43 commit fe7e635
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/other.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ export default
}
]
},
{
name: 'Does HTTP cache insert an `Age` header field when there is delay generating the response?',
id: 'other-age-delay',
kind: 'check',
requests: [
{
response_headers: [
['Cache-Control', 'max-age=3600'],
['Date', 0]
],
response_pause: 5,
expected_response_headers: [['age', '>', 0]]
}
]
},
{
name: 'HTTP cache must update the `Age` header field when freshness is based upon `Expires`',
id: 'other-age-update-expires',
Expand Down

0 comments on commit fe7e635

Please sign in to comment.