resources: Re-publish on transformation cache hit

When a resource transformation result was served from cache (same
options as a previous build), the output file was not re-written to
disk. This caused incorrect output when toggling transformation
options (e.g. minify) back to a previously seen value in server mode.

Fixes #14629
This commit is contained in:
Bjørn Erik Pedersen
2026-03-15 11:38:18 +01:00
parent 404ac00001
commit 3c980c072e
10 changed files with 105 additions and 9 deletions
+5
View File
@@ -245,6 +245,11 @@ type SignalRebuilder interface {
SignalRebuild(ids ...Identity)
}
// IsRebuildProvider signals if we're in a rebuild or not.
type IsRebuildProvider interface {
IsRebuild() bool
}
// IncrementByOne implements Incrementer adding 1 every time Incr is called.
type IncrementByOne struct {
counter uint64