Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ico ¶
type Ico struct {
// contains filtered or unexported fields
}
Ico renders a host's favicon. A host apply builds a new Ico, and the render is memoized on that instance only, so a brand or template change shows on the next request. It was a package-global cache that kept the first render until the process restarted (#305).
Caching headers (Cache-Control, ETag, Last-Modified, the 304) belong to the caller, HostHandler.faviconHandler, as they do for every host render.
func (*Ico) FaviconHandler ¶
func (i *Ico) FaviconHandler(w http.ResponseWriter, r *http.Request)