Fix hot cache to include ContentType and SizeBytes

Hot cache entries now store all data needed to serve a cache hit
without any database access:
- OutputHash (for file lookup)
- ContentType (for Content-Type header)
- SizeBytes (for Content-Length header)

Previously hot cache only stored OutputHash, causing empty
Content-Type headers on cached WebP responses.
This commit is contained in:
2026-01-08 12:28:17 -08:00
parent 51a1ae4a13
commit 4426387d1c
2 changed files with 33 additions and 11 deletions

View File

@@ -28,9 +28,11 @@ test:
go test -v ./...
# Build the binary
build:
build: ./bin/pixad
./bin/pixad: ./internal/*/*.go ./cmd/pixad/*.go
@echo "Building pixad..."
go build -ldflags "$(LDFLAGS)" -o bin/pixad ./cmd/pixad
go build -ldflags "$(LDFLAGS)" -o $@ ./cmd/pixad
# Clean build artifacts
clean: