Fixed UrlManager rules caching
Merge pull request #2979 from lubosdz/master

Fixes issue #2978 - JSON MIME type
Merge pull request #2976 from jeicd/urlmanager_fix

Fixed UrlManager rules caching
removed redundant whitespace