[contest] add HTTP caching middleware
fix luacheck errors
Merge branch 'Berelu-master'