diff mbox series

[OpenWrt-Devel,2/2] services/uhttpd: Make new uhttpd no_cache option configurable over uci

Message ID 20180704132659.5880-3-fe@dev.tdt.de
State New
Delegated to: Jo-Philipp Wich
Headers show
Series [OpenWrt-Devel,1/2] services/uhttpd: add -o option for Cache-Control header no-cache | expand

Commit Message

Florian Eckert July 4, 2018, 1:26 p.m. UTC
Make Cache-Control header no-cache configurable with uci. If the option
is not specified (default) then the Cache-Control header no-cache is not send
to the client.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
---
 package/network/services/uhttpd/files/uhttpd.init | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init
index 47270bcc15..aff24b5219 100755
--- a/package/network/services/uhttpd/files/uhttpd.init
+++ b/package/network/services/uhttpd/files/uhttpd.init
@@ -127,6 +127,7 @@  start_instance()
 	append_bool "$cfg" no_symlinks "-S" 0
 	append_bool "$cfg" no_dirlists "-D" 0
 	append_bool "$cfg" rfc1918_filter "-R" 0
+	append_bool "$cfg" no_cache "-o" 0
 
 	config_get alias_list "$cfg" alias
 	for alias in $alias_list; do