Local server not reflecting updated files
You can disable cache in Chrome DevTools under "Network".
Whenever you reload a page while DevTools is open, it will clear the cache.
Alternatively, use the hard refresh keyboard shortcut (Mac): CMD+shift+r
There's an option -c
that refers to the cache time (max-age) in seconds [3600]
(e.g. -c10
for 10 seconds).
To disable caching, use http-server -c-1
You can see more information by enter http-server -h
(for help)
The browser might be caching your code and/or assets.
In Chrome, with dev tools open (Right click -> Inspect element) you can right click on the refresh button and 'empty cache and hard reload'.