1
0
Fork 0
hugo/resources
Bjørn Erik Pedersen 1f5a15aba0 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
2025-01-18 12:23:18 +01:00
..
assets Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
images resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
internal Consolidate all hashing to the common/hashing package 2024-07-31 16:44:06 +02:00
jsconfig all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
kinds all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
page resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
postpub Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
resource resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
resource_factories resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
resource_transformers js/esbuild: Don't try to resolve packages in /assets marked as external 2024-12-22 21:29:18 +01:00
testdata resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
docs.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
image.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
image_cache.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
image_extended_test.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
image_test.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
resource_cache.go Fix same resource file published more than once 2024-12-27 18:55:24 +01:00
resource_metadata.go Add js.Batch 2024-12-12 21:43:17 +01:00
resource_spec.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
resource_spec_test.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
resource_test.go Add js.Batch 2024-12-12 21:43:17 +01:00
resources_integration_test.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00
testhelpers_test.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
transform.go resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
transform_integration_test.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
transform_test.go resources: Fix 2 image file cache key issues 2025-01-18 12:23:18 +01:00