333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
 
5.1.2 / 2018-02-06
==================
 
**others**
  * [[`ba60f3d`](http://github.com/koajs/static-cache/commit/ba60f3d859e98efd41a625fd0410ff4d930bf37b)] - deps: use ^ (dead-horse <<dead_horse@qq.com>>)
  * [[`82274d0`](http://github.com/koajs/static-cache/commit/82274d02d3601282cb363a2339081393ef2bf83d)] - deps: Update package.json bump debug and mz versions (#73) (Iain Maitland <<imaitland@protonmail.com>>)
 
5.1.1 / 2017-06-13
==================
 
  * fix: only load file under options.dir (#67)
 
5.1.0 / 2017-06-01
==================
 
  * feat: files support lru (#64)
  * Update mz (#61)
 
5.0.1 / 2017-04-19
==================
 
  * Add node.js v7.6.0 support (#58)
 
5.0.0 / 2017-04-01
==================
 
  * Support Koa 2 (#57)
 
4.0.0 / 2017-02-21
==================
 
  * refactor: check prefix first to avoid calculate (#56)
 
3.2.0 / 2017-01-07
==================
 
  * feat: support options.preload (#55)
 
3.1.7 / 2016-04-07
==================
 
  * update mz to 2.4.0
 
3.1.6 / 2016-03-22
==================
 
  * fix: don't catch downstream error
 
3.1.5 / 2016-03-02
==================
 
  * fix: dynamic load file bug on windows platform
 
3.1.4 / 2016-01-04
==================
 
  * bump deps
  * use mz
 
3.1.3 / 2015-11-26
==================
 
  * Fix broken mtime comparison
 
3.1.2 / 2015-07-08
==================
 
  * bugfix: error on dynamic files
 
3.1.1 / 2015-04-17
==================
 
  * fix: options.prefix bug in windows, fixes #39
 
3.1.0 / 2015-03-28
==================
 
  * Merge pull request #33 from AlexeyKhristov/gz
 
3.0.3 / 2015-03-28
==================
 
  * fix problem, cache is not used in dynamic mode
 
3.0.2 / 2015-03-18
==================
 
  * fix options.prefix bug in windows, fixes #36
 
3.0.1 / 2015-01-06
==================
 
  * feat(dynamic): add dynamic option to support dynamic load
  * fix(dynamic): use stat to detect folder
 
3.0.0 / 2015-01-06
==================
 
  * fix(test): typo
  * fix(buffer): keep the old logic of treat unbuffered file
  * feat: add opt.buffer false to serve file not cache at all
  * fix: support load file dynamic, close #30
 
2.0.2 / 2015-01-05
==================
 
  * fix normalize bug in windows, fixes #29
 
2.0.1 / 2014-12-02
==================
 
  * accept abnormal path, like: //index.html
 
2.0.0 / 2014-11-14
==================
 
  * bump koa
  * only response GET and HEAD
 
1.2.0 / 2014-09-18
==================
 
  * bump compressible and mime-types
  * decodeURI when use this.path as key to fetch value from files object
 
1.1.0 / 2014-07-16
==================
 
  * replace mime by mime-types
  * remove onerror and destroy, let koa hanlde these stuff
 
1.0.10 / 2014-05-18
==================
 
  * bump fs-readdir-recursive, fixed #14
  * fix bad argument handling, fixed #20
  * should not return gzip buffer when accept encoding not include gzip
 
1.0.9 / 2014-03-31
==================
 
  * add url prefix option
 
1.0.8 / 2014-03-31
==================
 
  * support options.dir, default to process.cwd()
  * add vary, check file's length when gzip
  * Ensure files can be gzipped via compressible.
 
1.0.7 / 2014-03-26
==================
 
  * add options.gzip to control gzip, support stream's gzip
  * add gzip support for buffers
 
1.0.3 / 2014-01-14
==================
 
 * update `on-socket-error`
 
1.0.0 / 2013-12-21
==================
 
 * use `yield* next`