Fix DOS vulnerability for running in production without use_cache

With special crafted url params there was possible to make server unresponsive
due to memory consumption.

This issue occurred only for setups running without `use_cache = true` in
production environment.
Merge pull request #167 from iNecas/dos-fix

Fix DOS vulnerability for running in production without use_cache