On Tue, Dec 10, 2024 at 5:56 AM Sylvain Saboua <sylvain.sab...@free.fr> wrote:
> Regularly I make minor [ae]d?ditions to my static html files. > > Afaik the browser needs to manually refresh the file in order to > display the latest version. > That's correct, but if you just tap the reload button (typically ctrl-R), your browser may decide to give you a cached (old) version. There are typically two workarounds for that: - Holding Shift while tapping the Reload button will, in some browsers, force a complete reload of the page, bypassing the browser's cache. - The dev tools embedded in all modern desktop browsers have a checkbox labeled something like "disable cache" which disables all browser caching for that one page for as long as the dev tools remain open. You will still have to manually reload the page, but those options help eliminate the risk of seeing out-of-date content. Am I doing something wrong or is there a workaround ? > It's completely normal. Your browser does not automatically go looking for changes after fetching content (nor would you want it to - your own website would quickly be swamped by thousands of other peoples' browsers doing that). This is also annoying when editing the style sheets. > Welcome to web development!