all repos — homestead @ cb0c1a6f85c4577b242228a7310d137bf461b30f

Code for my website

move style hashing to file layer

Alan Pearce
commit

cb0c1a6f85c4577b242228a7310d137bf461b30f

parent

0ee23f01ab6304fba37c1d2b66b16de9792e285c

1 file changed, 6 insertions(+), 1 deletion(-)

changed files
M internal/storage/files/file.gointernal/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 {