AqualinkD icon indicating copy to clipboard operation
AqualinkD copied to clipboard

config.js changes don't seem to change

Open mdetweiler opened this issue 3 years ago • 3 comments

I've tried to customize my interface by following the instructions here https://github.com/sfeakes/AqualinkD/wiki#aqualinkd-web-ui-configuration, but I do not see any changes in the UI. I've made changes in the /var/www/aqualink directory as well as the source to see if that helped, but nothing changes after a restart of the service or reboot of the system?

mdetweiler avatar Sep 07 '20 02:09 mdetweiler

AqualinkD tells the web browser to use Very heavy caching, my guess is the browser is using a cached version for config.js. So delete browser cache and/or put browser into developer mode (so it doesn’t cache) while your playing with that file.

I’ll make a note of that the wiki, I should have noted that.

BTW only /var/log/aqualinkd is used when running, no need to edit version in home directory.

sfeakes avatar Sep 07 '20 02:09 sfeakes

Yup... that worked! Sorry for the alarm. Interesting that the caching does not affect the other dynamic data, only the layout.

mdetweiler avatar Sep 07 '20 02:09 mdetweiler

Dynamic content is sent over a websockets, so not your normal http connection (which is why updates are instant and not polled). And browser can’t cache websockets data. So that’s the main reason why. But also Anything on the file system (/var/www/AqualinkD), AqualinkD tells browser to cache heavily anything its creates on the fly It tells the browser not to cache.

sfeakes avatar Sep 07 '20 02:09 sfeakes