Date and Last-Modified headers now can be disabled while there still enabled by 
default.
I hope in future versions they become disabled by default and later removed at 
all.
I checked and Cache-Control works fine in Chrome and Firefox even if Date is 
not present.
Last-Modified can be replaced with ETag.
Another difference with previous patch is that now ETag will be returned even 
in 304 response.
This is a requirement of spec and it makes sense because If-None-Match may have 
many ETags
but client should know which ETag matched.

You can clone the code from https://github.com/stokito/busybox/commits/caching


Sergey Ponomarev (4):
  httpd: Update to HTTP/1.1
  httpd: Don't add Date header to response
  httpd: Don't add Last-Modified header to response
  httpd: Support caching via ETag header

 networking/httpd.c | 131 ++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 111 insertions(+), 20 deletions(-)

-- 
2.25.1

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to