Skip to content
Permalink
Browse files

Adding cache control when serving files (#1516)

* Adding cache control when serving files
* Allowing to set max-age with an env variable
  • Loading branch information...
paganotoni committed Jan 4, 2019
1 parent 476b6bd commit 9392326efc3bd0ad279458d2bf162c0af7d54332
Showing with 107 additions and 2 deletions.
  1. +1 −1 go.mod
  2. +80 −0 go.sum
  3. +12 −1 route_mappings.go
  4. +14 −0 router_test.go
2 go.mod
@@ -42,7 +42,7 @@ require (
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.3.1
github.com/stretchr/testify v1.2.2
golang.org/x/crypto v0.0.0-20190102171810-8d7daa0c54b3
golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
golang.org/x/tools v0.0.0-20190102213336-ca9055ed7d04
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc
Oops, something went wrong.

0 comments on commit 9392326

Please sign in to comment.
You can’t perform that action at this time.