mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
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
This commit is contained in:
parent
8897113666
commit
1f5a15aba0
38 changed files with 342 additions and 233 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue