mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add application icons
This commit is contained in:
parent
1d8193b892
commit
231ebf2daa
12 changed files with 63 additions and 8 deletions
|
@ -54,7 +54,7 @@ func (r *Response) NotModified() {
|
|||
// Cache returns a response with caching headers.
|
||||
func (r *Response) Cache(mimeType, etag string, content []byte, duration time.Duration) {
|
||||
r.writer.Header().Set("Content-Type", mimeType)
|
||||
r.writer.Header().Set("Etag", etag)
|
||||
r.writer.Header().Set("ETag", etag)
|
||||
r.writer.Header().Set("Cache-Control", "public")
|
||||
r.writer.Header().Set("Expires", time.Now().Add(duration).Format(time.RFC1123))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue