I need some help. I noticed my browser keeps my files. I deleted some css files to test if I would see changes but it looks like my hugo server doesn’t refresh.
Also tried hugo server -D. Used cognitive browser as well. Same thing. Only saw the changes I made after checking a different browser entirely.
Try this previous post as it may guide you …
hugo server --noHTTPCache seems to be your friend
Short answer: Yes.
You really, really want browser caching.
The common pattern is to somehow turn it off during development, and make sure you control it when going live (for example by fingerprinting your CSS etc.).
For development there are (at least) 2 options:
My recommendation: Work with the Chrome dev tool open with the cache disabled (this is default)
Run server with --noHTTPCache. But note that I recommend/like 1) better, as Chrome seem to be smarter about it. 2) Seems to slow thin…
Also as told in the linked solution: If you have Chrome Developer Tools open and click long on the reload icon you get options to reload with a cleared cache. The option to not use the cache is quite hidden in Developer Tools these days.
Yeah ran into this, and had to figure out how to turn off the caching. Its a check box in the Network tab