View definition

type CacheControlPublicHandler

Defined in github.com/pierrre/imageserver/http/util.go

Description

CacheControlPublicHandler is a net/http.Handler implementation that sets the "Cache-Control" header to "public".

It only sets the header if the status code is StatusOK/204 or StatusNotModified/304.

CacheControlPublicHandler is referenced in 1 repository

github.com/pierrre/imageserver