Skip to content

Cache busting a deployed site #521

Answered by h-enk
mikepianka asked this question in Support
Discussion options

You must be logged in to vote

In Chrome I am seeing partial changes until I manually clear the cache, then I see all the changes I made as expected.

Chrome caches quite aggressively /that looks like standard Chrome behavior.

Is there anything I am supposed to be configuring specifically for the theme or Hugo to handle this?

No, the default settings should do — see also Configure File Caches — unless your adding dynamic elements (like e.g. React or reading from json files). For example, for getdoks.org I'm using these settings to display the most recent Doks version of package.json:

[caches]
  [caches.getjson]
    dir = ":cacheDir/:project"
    maxAge = "10s"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mikepianka
Comment options

Answer selected by mikepianka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants