move style hashing to file layer
1 file changed, 6 insertions(+), 1 deletion(-)
changed files
M internal/storage/files/file.go → internal/storage/files/file.go
@@ -46,9 +46,14 @@ Path: path, ContentType: mime.TypeByExtension(filepath.Ext(filename)), LastModified: stat.ModTime(), Etag: etag, - Encodings: map[string]io.ReadSeeker{ + Encodings: map[string]*buffer.Buffer{ "identity": buf, }, + } + + err = file.CalculateStyleHash() + if err != nil { + return nil, err } for enc, suffix := range encodings {