Hugo does not update in real time

Hi, I set up Hugo and a Hugo project. It worked in itself, only I have to reload the generated page manually!

Basic Usage | Hugo (

use hugo --watch --noHTTPCache --navigateToChanged

Error: unknown flag: --noHTTPCache

At the command

`hugo server --port 80 --noHTTPCache --navigateToChanged´

I still have to reload it manually

JAVA deactivated??

yes i missed server command :frowning:

Not sure if this will be helpful.

If your project is using CSP (Content-Security Policy) and you are browsing using Firefox, Hugo’s --watch / LiveReload will not work. I’ve been trying to find which CSP setting is causing Firefox to block it but it appears to be a known issue for ages–at least based on what I randomly found online with a similar issue (livereload but not Hugo related).

It works fine on Edge.

Again, I’m not sure if this is the situation in your case.

you can try to define it in meta elements, but this OFF topic for this forum.

Content Security Policy (CSP) - HTTP | MDN (

Yes, but with Azuriom this works without any problems!

I have my CSP in my meta block.

You can use condtructions like

{{ if site.IsServer }}
  <meta http-equiv="cache-control" content="no-cache">
{{ else }}

to activate / deactivate anything for local use.

1 Like

Where do I put that? Had it inserted in <header>! Nothing happens there!

should be in

CSP can you do in the else part. Use the browser tools to check, if al is lthere where needed.

If you start with hugo server there should be this inserted behind

<head><script src="[/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload](http://localhost:1313/livereload.js?mindelay=10&v=2&port=1313&path=livereload)" data-no-instant defer></script>

1 Like