Luke Childs
|
efe3a4f3ba
|
1.1.0
|
8 years ago |
Luke Childs
|
13ca7ee17f
|
Mention Expires header support in readme
|
8 years ago |
Luke Childs
|
c0abbcf29c
|
Use different dates for Date/Expires headers so bugs don't slip through
|
8 years ago |
Luke Childs
|
18e4e1e502
|
Don't freeze `Date` for expired.on tests
|
8 years ago |
Luke Childs
|
4940ec8319
|
Test expired.on prefers Cache-Control over Expires header
|
8 years ago |
Luke Childs
|
28cac6df52
|
Test expired.on uses Expires header
|
8 years ago |
Luke Childs
|
c62fcaf849
|
Use Expires headers if we don't have Cache-Control
|
8 years ago |
Luke Childs
|
47550d4f5c
|
Wrap Cache-Control calculations in if check for headers
|
8 years ago |
Luke Childs
|
db3964eb9b
|
Make API a heading 2
|
8 years ago |
Luke Childs
|
84fb37fb11
|
Make expired.in description less ambiguous
|
8 years ago |
Luke Childs
|
53a92af3b6
|
Remove extra dates in readme usage example
|
8 years ago |
Luke Childs
|
1c98641d18
|
1.0.0
|
8 years ago |
Luke Childs
|
c37cd1e7de
|
Add current date to delay example as well
|
8 years ago |
Luke Childs
|
627e91a83a
|
Woops, fix dates in readme usage example
|
8 years ago |
Luke Childs
|
14bd9a3152
|
Add current date to readme usage example
Just to avoid confusion between GMT and default dates
|
8 years ago |
Luke Childs
|
64d00ef27b
|
Add API section to readme
|
8 years ago |
Luke Childs
|
ef5959684b
|
Add usage section to readme
|
8 years ago |
Luke Childs
|
0d6ee3c412
|
Add install section to readme
|
8 years ago |
Luke Childs
|
f8ba7a3f0e
|
Add license to readme
|
8 years ago |
Luke Childs
|
99ea6516f7
|
Add readme
|
8 years ago |
Luke Childs
|
f8418bf31b
|
Update description and keywords
|
8 years ago |
Luke Childs
|
78c9b683d5
|
Pin dependency versions
|
8 years ago |
Luke Childs
|
3a4014e1db
|
Better comments
|
8 years ago |
Luke Childs
|
73724234d5
|
Don't instantiate Date object twice on originDate
|
8 years ago |
Luke Childs
|
89e0f1093f
|
Allow headers to be passed in via string or object
|
8 years ago |
Luke Childs
|
1c773154ae
|
Test headers can be passed in as a string
|
8 years ago |
Luke Childs
|
6a9051d138
|
Test headers can be passed in as an object
|
8 years ago |
Luke Childs
|
65578a6987
|
Test expired.on takes age into account
|
8 years ago |
Luke Childs
|
0170252591
|
Swap subSeconds for addSeconds
|
8 years ago |
Luke Childs
|
f48d614600
|
Test expired.on returns correct expirey date for stale cache
|
8 years ago |
Luke Childs
|
72e07140ff
|
Test expired.on returns correct expirey date for instantly stale cache
|
8 years ago |
Luke Childs
|
c22971a15e
|
Test expired.on returns correct expirey date for valid cache
|
8 years ago |
Luke Childs
|
1a4eaff85e
|
Test expired.on is a function
|
8 years ago |
Luke Childs
|
3df8fd9175
|
Name test check variables
|
8 years ago |
Luke Childs
|
752bc6f836
|
Test expired.in returns negative ms for stale cache
|
8 years ago |
Luke Childs
|
db0e013b28
|
Test expired.in returns zero ms for instantly stale cache
|
8 years ago |
Luke Childs
|
e95252b664
|
Test expired.in returns positive ms for valid cache
|
8 years ago |
Luke Childs
|
a0b01ec1d8
|
Test expired.in is a function
|
8 years ago |
Luke Childs
|
b552e87388
|
Test expired returns true for stale cache
|
8 years ago |
Luke Childs
|
cf6816c766
|
Test expired returns false for valid cache
|
8 years ago |
Luke Childs
|
972dd48e07
|
Fix indentation of comments
|
8 years ago |
Luke Childs
|
5c86fd9546
|
Add "in" method
|
8 years ago |
Luke Childs
|
295c8a25ca
|
0.1.0
|
8 years ago |
Luke Childs
|
3dbcbbf630
|
Refactor main function into arrow function
|
8 years ago |
Luke Childs
|
2cf989d3bb
|
Main function returns boolean for cache validity
|
8 years ago |
Luke Childs
|
9a855928c5
|
Extract main logic out into "on" method
|
8 years ago |
Luke Childs
|
15a439a45d
|
unit.js -> expired.js
|
8 years ago |
Luke Childs
|
9f551432d8
|
Drop standard for xo
|
8 years ago |
Luke Childs
|
adb363e8bc
|
Extract expired from onionoo-node-client
|
8 years ago |