Commit Graph

3 Commits (45ca2e460538943b0db5421770297e2929e4273a)

Author SHA1 Message Date
silverwind 0615b668dc
HTTP cache rework and enable caching for storage assets ()
This enabled HTTP time-based cache for storage assets, primarily
avatars. I have not observed If-Modified-Since from browsers during
tests but I guess it's good to support regardless.

It introduces a new generic httpcache module that can handle both
time-based and etag-based caching.

Additionally, manifest.json and robots.txt are now also cachable.
Lunny Xiao 9ec5e6c40b
Move metrics from macaron to chi ()
Lunny Xiao c296f4fed6
Introduce go chi web framework as frontend of macaron, so that we can move routes from macaron to chi step by step ()
* When route cannot be found on chi, go to macaron

* Stick chi version to 1.5.0

* Follow router log setting