changed parameter for maxAge configuration

The maxAge parameter should be retrieved from the
sails.config.http.cache variable according to documentation.
Merge pull request #2260 from Winangel/cache-debug

Changed parameter for maxAge configuration