Update caching logic/headers (#184)

* Improve caching by adding etags and reducing the max-age

* Move caching into middleware. Set cache headers on segments
This commit is contained in:
Gabe Kangas
2020-09-30 14:14:39 -07:00
committed by GitHub
parent 6a0e8deae3
commit 8aa5c33999
5 changed files with 78 additions and 22 deletions

1
go.mod
View File

@@ -4,6 +4,7 @@ go 1.14
require (
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/amalfra/etag v0.0.0-20190921100247-cafc8de96bc5
github.com/aws/aws-sdk-go v1.34.0
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/mattn/go-sqlite3 v1.14.0