[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 0/4] HTTPD: Add caching
From: Sergey Ponomarev <stokito () gmail ! com>
Date: 2020-08-08 22:23:30
Message-ID: 20200808222334.165950-1-stokito () gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic