Commit d75accb8 authored by Evan You's avatar Evan You

update comments

parent 2f479ef9
......@@ -62,12 +62,14 @@ app.use('/public', serve('./public', true))
app.use('/manifest.json', serve('./manifest.json', true))
app.use('/service-worker.js', serve('./dist/service-worker.js'))
// 1-second microcache.
// 1-second micro-cache.
// https://www.nginx.com/blog/benefits-of-microcaching-nginx/
const pageCache = LRU({
max: 100,
maxAge: 1000
})
// since this app has no user-specific content, every page is cacheable.
// since this app has no user-specific content, every page is micro-cacheable.
// if your app involves user-specific content, you need to implement custom
// logic to determine whether a request is cacheable based on its url and
// headers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment