News for hackers. Stuff that matters.
Re:Migrating from Jekyll to Hugo by benatkin on Sunday June 24, 2018 @07:05PM (#17388853)
I've seen that happen, but I've seen people reset their browser caches because of misconfigured aggressive caching much more often.

IMO max-age=0, must-revalidate is a much better choice for the average website/blog owner.

For complex apps, setting up the asset pipeline can be worth the tradeoff. But Hugo is hardly a lower tier static site generator for not supporting this.

Re:Migrating from Jekyll to Hugo by nickjj on Monday June 25, 2018 @08:30AM (#17391810)
You can't shoot yourself in the foot with the md5 tagging approach. It completely solves cache invalidation in a simple way. That's why it's so popular.

When the content of your file changes you get a completely new file which has no cache headers associated to it. Then nginx caches the file forever, and when you make a change, a new file is created and the process repeats but if you don't make a change, then the same file is served from the user's local cache.