[PATCH 0/2] uhttpd: Generate ETag similar to Nginx and BusyBox HTTPD

Sergey Ponomarev stokito at gmail.com
Tue Jan 12 17:20:55 EST 2021


Different web servers generates different ETag header and this creates a problem for load balancing between them.
Currently uhttpd generates ETag similar to old Apache/2.2. But then Apache changed it.
I developing a small blog engine when on a router (uhttpd) runned a shrinked version and full version with images runned on my PC (Nginx).
If PC is turned off then requests are processed only by uhttpd.
To avoid re-downloading they both should generate similar ETag.
Nginx is most used replacement for uhttpd and even exists luci-nginx package.
Interesting that Gl.net and Turis devices uses LightHttpd which anyway uses bad ETag with loosed entropy.
See https://stackoverflow.com/questions/47512043/how-etags-are-generated-and-configured/62996104#62996104

Sergey Ponomarev (2):
  Make ETag load balancer friendly
  Generate ETag similar to Nginx and BusyBox HTTPD

 file.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-- 
2.27.0




More information about the openwrt-devel mailing list