Managing web server caching on a static generated site with blog

invertedpanda

Ars Tribunus Militum
1,844
Subscriptor
Just because I was sick of WP's performance and wanted to have some fun, I combined 2 of my sites into one and built it entirely using Next.js.

Of course, I also didn't want to mess with traditional Next.js hosting like Vercel and figured I'd just manage updates by uploading the static build files for now.

This works great in that it's cheap and performance is spectacular, but it also sucks because I don't get that whole sensible caching configuration, which kills the experience for repeat visitors.

I'm a bit weak on how to handle this; Ideally I'd be able to say "reset cache on file updates" (typically once a week).

This is on a shared hosting plan, btw.

Any suggestions?