cache-control extension example
This commit is contained in:
@ -117,13 +117,6 @@ function localWebServer (options) {
|
||||
middlewareStack.push(etag())
|
||||
}
|
||||
|
||||
/* cache-control headers */
|
||||
if (options.cacheControl) {
|
||||
const cacheControl = require('koa-cache-control')
|
||||
debug('Cache control', JSON.stringify(options.cacheControl))
|
||||
app.use(cacheControl(options.cacheControl))
|
||||
}
|
||||
|
||||
/* mime-type overrides */
|
||||
if (options.mime) {
|
||||
debug('mime override', JSON.stringify(options.mime))
|
||||
|
Reference in New Issue
Block a user