Enh: allow to custom set maxAge for layouts and stats cache.
Fix: After commit b74da1af0d01b3260e222b09c476e64ff199bdf1 JavaScript files are loaded by RequireJS from main www domain.

Should load from the same static domain.