[OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files
Adrian Kotelba
adrian.kotelba at gmail.com
Mon Sep 7 07:39:07 EDT 2015
2015-09-07 12:40 GMT+03:00 Bastian Bittorf <bittorf at bluebottle.com>:
> * Adrian Kotelba <adrian.kotelba at gmail.com> [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, and css files, could
>> be stored as gzip or zopfli precompressed files. Thus, one reduces
>> storage requirements and improves page loading times.
>
> 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?
Right. More preciselly, if somebody tries to http_get file 'xy.html'
and the webserver does find it, then it serves it.
If 'xy.html' is not found, then webserver tries 'xy.html.gz'. If
'xy.html.gz' is found, then it is served.
> the storage-argument is not really valid, because the
> files are usually compressed anyway (squashfs or jffs2).
> the "slow networks" argument is ofcourse valid.
Agreed.
> bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list