Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-07 Thread Adrian Kotelba
2015-09-07 16:45 GMT+03:00 Bastian Bittorf : > * Adrian Kotelba [07.09.2015 15:18]: >> > ok, as far as i understand the patch, if somebody >> > tries to http_get file 'xy.html' and the webserver >> > finds 'xy.html.gz' it serves this file, right?

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-07 Thread Adrian Kotelba
2015-09-07 12:40 GMT+03:00 Bastian Bittorf : > * Adrian Kotelba [07.09.2015 11:36]: >> Well, it could be useful for low-end devices with small storage >> capacity and slow networks, see https://dev.openwrt.org/ticket/14333. >> The static content, mostly text-based HTML, Java,

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-06 Thread Adrian Kotelba
improves page loading times. Adrian 2015-09-06 21:14 GMT+03:00 Bastian Bittorf : > * Adrian Kotelba [06.09.2015 20:05]: >> Serving precompressed content with uhttpd. > > please write more about the usecase. it looks useless?! > > bye, bastian __

[OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-06 Thread Adrian Kotelba
Serving precompressed content with uhttpd. Signed-off-by: Adrian Kotelba >adrian.kote...@gmail.com> --- diff --git a/file.c b/file.c index 480c40b..81f8186 100644 --- a/file.c +++ b/file.c @@ -136,6 +136,7 @@ uh_path_lookup(struct client *cl, const char *url) int docroot_len = strlen(d