]> git.maquefel.me Git - brevno-suite/hugo/commit
cache: Apply httpcache defaults for polling config
authorkhayyam <ksaleem@digitalocean.com>
Fri, 14 Mar 2025 13:37:26 +0000 (09:37 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 13:37:26 +0000 (14:37 +0100)
commitd28c84a871937dfed1e429136d28676df9d60c93
tree501b7b8f5aa5aedc0d362662121c43337de88c56
parent61c39ae63b62667d965c2ff96d085f4eda59bcb2
cache: Apply httpcache defaults for polling config

Previously, compiling the config with partial or missing poll configs
would introduce a panic. This ensures that the default poll configs
are applied in such scenarios to ensure config is valid.

Fixes #13471
cache/httpcache/httpcache.go
cache/httpcache/httpcache_test.go