[OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header
fe at dev.tdt.de
Wed Jul 4 09:26:57 EDT 2018
I am working with luci-ng. And i have problems with caching with the following
Browser Edge, Internet-Explorer and Firefox. Chrome is working fine.
sysupgrade then the new files will not get loaded from uhttpd server.
The browsers always used the cached version and not the new version from
To fix this tell the uhttpd to send the header Cache-Control no-cache on file
download. This header tells the browser to always check if the file has
changed on the server. If the file has not changed then the server send a 302
status header. The status header 302 tells the browser to load the file from
the browser cache because nothing has changed. On the other side if the file
has changed then the browser will deliver the new one.
This makes following patches deprecated
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel