UNPKG
@bbc/http-transport-cache
Version:
beta-swr (1.3.8)
latest (5.0.0)
5.0.0
4.4.0
4.3.1
4.3.0
4.2.2
4.2.1
4.2.0
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.11.0
3.10.0
3.9.0
3.8.0
3.7.0
3.6.1
3.6.0
3.5.1
3.5.0
3.4.0
3.3.1
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
2.0.2
2.0.1
2.0.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Caching middleware
github.com/bbc/http-transport-cache
bbc/http-transport-cache
@bbc/http-transport-cache
/
index.js
12 lines
(9 loc)
•
213 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
const
maxAge =
require
(
'./lib/maxAge'
);
const
staleIfError =
require
(
'./lib/staleIfError'
);
const
events =
require
(
'./lib/events'
).
emitter
;
module
.
exports
= { maxAge, staleIfError, events };