[PATCH 0/4] HTTPD: Add caching

Sergey Ponomarev stokito at gmail.com
Thu Jul 9 22:42:15 UTC 2020


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



More information about the busybox mailing list