summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites_multihost_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2025-01-16 19:15:30 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2025-01-18 12:23:18 +0100
commit1f5a15aba0fc7cc4f4cf4ce1afc8d6db81c63e06 (patch)
tree5a8cf37158d2c700ecf9f059c464697a0e2cbc56 /hugolib/hugo_sites_multihost_test.go
parent8897113666c9e7e62fed945602910ebcd0ec6421 (diff)
downloadhugo-1f5a15aba0fc7cc4f4cf4ce1afc8d6db81c63e06.tar.gz
hugo-1f5a15aba0fc7cc4f4cf4ce1afc8d6db81c63e06.zip
resources: Fix 2 image file cache key issues
* Always include the content hash in the cache key for unprocessed images. * Always include the image config hash in the cache key. This is also a major cleanup/simplification of the implementation in this area. Note that this, unfortunately, forces new hashes/filenames for generated images. Fixes #13273 Fixes #13272
Diffstat (limited to 'hugolib/hugo_sites_multihost_test.go')
-rw-r--r--hugolib/hugo_sites_multihost_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/hugo_sites_multihost_test.go b/hugolib/hugo_sites_multihost_test.go
index 39504202b..37f7ab927 100644
--- a/hugolib/hugo_sites_multihost_test.go
+++ b/hugolib/hugo_sites_multihost_test.go
@@ -205,9 +205,9 @@ title: mybundle-en
b.AssertFileExists("public/de/mybundle/pixel.png", true)
b.AssertFileExists("public/en/mybundle/pixel.png", true)
- b.AssertFileExists("public/de/mybundle/pixel_hu8581513846771248023.png", true)
+ b.AssertFileExists("public/de/mybundle/pixel_hu_58204cbc58507d74.png", true)
// failing test below
- b.AssertFileExists("public/en/mybundle/pixel_hu8581513846771248023.png", true)
+ b.AssertFileExists("public/en/mybundle/pixel_hu_58204cbc58507d74.png", true)
}
func TestMultihostResourceOneBaseURLWithSuPath(t *testing.T) {