I am running busybox httpd with following command:
busybox httpd -p 80 -h /var/www
It works, however I need to set cache-control header to no cache.
Currently my server append only these headers:
HTTP/1.0 200 OK
Content-type: text/html
Date: Thu, 28 Jun 2018 06:58:08 GMT
Connection: close
Accept-Ranges: bytes
Last-Modified: Thu, 28 Jun 2018 06:57:43 GMT
Content-Length: 45
How can I configure my busybox httpd server to append
Cache-Control: no-cache
header?
Best Answer
BusyBox HTTP Daemon (httpd) webserver is an own simple web server implementation without wide configuration options, as you can see from the OpenWRT configuration documentation or the comment block from
httpd.c
source (lines 39-60):Your options with BusyBox HTTPd:
httpd.c
to add the header and compile.Or install some more versatile web server that has this: Nginx, Apache, Lighttpd...