Hugo post won't upload

The following is a post I’m trying to upload:

title: "First"
date: 2022-12-01T12:38:42-05:00
draft: false

*hi there*

but it never updates on the site

Upload to where?

Where are you building the site.

Please provide bit more detail. You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.


Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Need more info but I’ve had similar so I’ll say what I did.
Check the sync to the remote server has worked (e.g. I open the remote file using sftp). If the update is there then I check if there is anything preventing the refresh, e.g. browser caching, service worker, server caching (e.g. litespeed cache).

Switching to Hugo has been a great improvement for me in this respect, previously if I made an update I’d have to clear the CMS’s cache and the litespeed cache. Since I’m serving static pages now the server caching doesn’t need to run.
I have the (fingerprinted) images on a long expires time but the html files much shorter to make sure if I update people see the new page without manually refreshing their browser.