Re: [OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header

2018-07-06 Thread Florian Eckert
On 2018-07-05 12:53, Karl Palsson wrote: > I just made all my code request js files with ?ver= version > suffixes, so that only the right versions were cached. Yes i have seen this in luci but not in luci-ng. well, fix that? :) I think the problem with caching could be split up in two to

Re: [OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header

2018-07-05 Thread Karl Palsson
> > I just made all my code request js files with ?ver= version > > suffixes, so that only the right versions were cached. > > Yes i have seen this in luci but not in luci-ng. well, fix that? :) signature.html Description: OpenPGP Digital Signature __

Re: [OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header

2018-07-04 Thread Florian Eckert
Thanks for reply On 2018-07-04 16:01, Karl Palsson wrote: Florian Eckert wrote: 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 serv

Re: [OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header

2018-07-04 Thread Karl Palsson
Florian Eckert wrote: > 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. If the javascript or html files have > changed on the system for example on sysupgrade then the new > files will not get

[OpenWrt-Devel] uhttpd: add configurable client Cache-Control http header

2018-07-04 Thread Florian Eckert
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. If the javascript or html files have changed on the system for example on sysupgrade then the new files will not get loaded from uhttpd server. The bro