I am working on a GUI using THttpServer, when I open my web page on my browser, and access some .log/.txt files from it, I don’t see them to be updated automatically once I write into those files, I need to refresh the page to get the last changes. Is there a way to make it more “dynamical” please ? Here is a snippet of the code I am using:
Most probably, you see browser caching problem.
Once file read, next time you get file content from the cache - not from network.
Simple workaround - you can add unique URL parameter like http://localhost:8080/subdir/file.txt?par=123. Changing such parameter you always get new content from the server.
Unfortunately, nocache parameter does not affect plain files access.
I will try to fix it.