In most cases, responses from ql.io tend to be smaller and caching those responses makes more sense.
There is just one catch - I've a pending change (https://github.com/ql-io/ql.io/pull/394) to allow routes to set arbitrary response headers, and you need this change to add Cache-Control headers on responses. This should be in npm by COB Monday.
Here is an example of how to enable this:
return someObj
via route '/my/path'
using method get
using headers 'Cache-Control' = 'max-age: 1200';
Subbu
The changes are now in npm. Please get the latest. A make clean install would do, or you can explicitly install
ql.io-c...@0.4.7
ql.io-...@0.4.27
ql.io-...@0.4.15
These changes let you add cache-control headers on route responses.
Subbu