如何在openwrt uhttpd中设置Cache-Control标头

问题描述

我检查了docs,但找不到有关Cache-Control的任何信息。我希望设置以下标题

Cache-Control: no-cache,max-age=0

如果您知道解决方法,请告诉我。非常感谢!

解决方法

在此处检查,将值直接更改为 / etc / config / luci

即可禁用或禁用1
config internal 'ccache'
    option enable '1'

顺便说一句,这就是luci运行uhttpd的方法。您需要使用{strong> / etc / config / uhttpd 此处https://openwrt.org/docs/guide-user/services/webserver/uhttpd

中所述的设置来摆弄其他参数