Hugo server not reloading changed content for a file

Hi All,

Platform: Hugo Static Site Generator v0.55.5 freebsd/amd64 BuildDate: unknown

I have a readfile function in my file as follows:

{{< readfile file="/" markdown=“true” >}}

and I’ve enabled the shortcode in my layouts shortcodes directory.

It works fine with the hugo server command when first started:

hugo server --ignoreCache --disableFastRender --noHTTPCache --watch --gc -D

and the file contents (a random quote) shows up on the home page.

However, I can’t seem to get the hugo server to reload that file when I change
the contents by overwriting with a new quote. The output from the server
command does see that the file has been changed:

Rebuild for events [pathtofile/ : WRITE]

so it knows the file was changed, but the hugo server is not serving the new content.

The old content is still there, even if I start a new browser.

Note - if I also modify the (adding a blank line), then everything is
reread and new content appears. But I don’t want to have to change
I only want to change

Any ideas on how I can get hugo server to read and serve the new
changed content for

Best Regards,
Jim B.

Ok, forget it with hugo. I’ll implement what I need with a server side include directive and
change the file on the server. I’ve stuck the SSI directive at the bottom of as follows:

<!--#include file="quote.html" -->

This is transparent to hugo, so there is no error.