(where assets is some JS and CSS) but don't see a clear way to do this. Is that a possibility currently? What I'm currently doing can be seen here. This just gets a shape like [ { headerName: 'headerValue' } ].
I'm trying to avoid adding a separate middleware before staticCache — I'm trying to control headers only for things that happened to also be served by this middleware.
I'm looking to do something like the following (using
koa-router
):(where
assets
is some JS and CSS) but don't see a clear way to do this. Is that a possibility currently? What I'm currently doing can be seen here. This just gets a shape like[ { headerName: 'headerValue' } ]
.I'm trying to avoid adding a separate middleware before
staticCache
— I'm trying to control headers only for things that happened to also be served by this middleware.