mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +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
|
@ -60,7 +60,7 @@ Copy3: {{ $copy3.RelPermalink}}|{{ $copy3.MediaType }}|{{ $copy3.Content | safeJ
|
|||
|
||||
b.AssertFileContent("public/index.html", `
|
||||
Image Orig: /blog/images/pixel.png|image/png|1|1|
|
||||
Image Copy1: /blog/images/copy_hu2891316072287293157.png|image/png|3|4|
|
||||
Image Copy1: /blog/images/copy_hu_1d9addfff177f388.png|image/png|3|4|
|
||||
Image Copy2: /blog/images/copy2.png|image/png|3|4
|
||||
Image Copy3: image/png|3|4|
|
||||
Orig: /blog/js/foo.js|text/javascript|let foo;|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue