Replies: 3 comments 1 reply
-
sure. exports.init = api => ({
middleware(ctx) {
if (ctx.path.endsWith('.gz'))
ctx.set('content-encoding', 'gzip')
}
}) it's just a stub, i didn't test it. exports.middleware = ctx => {
if (ctx.path.endsWith('.gz'))
ctx.set('content-encoding', 'gzip')
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
would it be nice if you had an editor in the admin panel where you simply write the code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That would make it much easier for me ;) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to serve a WebGL Webassembly app using HFS. The files are compressed to reduce traffic. Unfortunately, the framework I'm using expects all *.gz files to be served with the Response header Content-Encoding: gzip can I configure this with HFS? Or would I be able to build a Plugin for this?
Beta Was this translation helpful? Give feedback.
All reactions