Skip to content

Commit

Permalink
Add ETag header to avatars (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwko authored and lunny committed Jan 25, 2017
1 parent 8093b33 commit 8555e88
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 9 deletions.
1 change: 1 addition & 0 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func newMacaron() *macaron.Macaron {
macaron.StaticOptions{
Prefix: "avatars",
SkipLogging: setting.DisableRouterLog,
ETag: true,
},
))

Expand Down
14 changes: 13 additions & 1 deletion vendor/github.com/go-macaron/bindata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/gopkg.in/macaron.v1/macaron.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/gopkg.in/macaron.v1/render.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion vendor/gopkg.in/macaron.v1/router.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/gopkg.in/macaron.v1/static.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@
"revisionTime": "2015-10-06T22:16:25Z"
},
{
"checksumSHA1": "qTJizMr1DBhDTZiRNmC+khEClz8=",
"checksumSHA1": "3w6jybRjyrhohNQJMnIxMC8cYXM=",
"path": "github.com/go-macaron/bindata",
"revision": "de74a053830c7d338bf209adf3b711c969f63e59",
"revisionTime": "2016-01-05T04:39:20Z"
"revision": "85786f57eee3e5544a9cc24fa2afe425b97a8652",
"revisionTime": "2016-12-22T09:30:48Z"
},
{
"checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=",
Expand Down Expand Up @@ -1369,10 +1369,10 @@
"revisionTime": "2016-08-08T14:54:09Z"
},
{
"checksumSHA1": "wzuoHPA/Ccoe1CFnDL35rnL0JoI=",
"checksumSHA1": "u1dW5zfo2SWot04r5cL8dTbmtcc=",
"path": "gopkg.in/macaron.v1",
"revision": "4974334b10dbb6f5c0e17f4c10555ff050a16329",
"revisionTime": "2016-08-26T18:07:28Z"
"revision": "aa6b7ee41a182898a33d798c655df1cac9d2230b",
"revisionTime": "2017-01-22T14:42:53Z"
},
{
"checksumSHA1": "6QPjE+qflEBHg+JPJd9e4iQuRAk=",
Expand Down

0 comments on commit 8555e88

Please sign in to comment.