[PATCH 0/4] HTTPD: Add caching

Denys Vlasenko vda.linux at googlemail.com
Fri Jul 31 15:49:39 UTC 2020

Apologies for late reply.
The removal of headers should be conditional on CONFIG variables -
some people may used them, and also, since Date: is mandatory,
unconditionally removing it doesn't feel right.

Can you send a patch which combines patches 2, 3 and 4, and then,
if you want, patches which make Date: and Last Modified: optional?

Thank you.

On Fri, Jul 10, 2020 at 12:42 AM Sergey Ponomarev <stokito at gmail.com> wrote:
> HTTP caching significantly decreases load and becomes especially important for embedded systems.
> HTTPD already returns Last-Modified header which then browser is sends back to server via If-Modified-Since.
> Server must compare these two dates and return 304 Not Modified without payload.
> But the logic is not implemented yes so this makes even worse and more resources are spent:
> browsers always invalidates their cache, date is formatted for each response and transmitted over networks twice.
> This set of patches implements caching in most simplest and fastest way.
> Sergey Ponomarev (4):
>   httpd: do not send useless Date header
>   httpd: send ETag header instead of Last-Modified
>   httpd: Support caching via 'ETag:' header
>   httpd: update to HTTP/1.1
>  networking/httpd.c | 82 ++++++++++++++++++++++++++++++++--------------
>  1 file changed, 58 insertions(+), 24 deletions(-)
> --
> 2.25.1
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox

More information about the busybox mailing list