only avoid redirects when requested format is json
store call counts in the minutes collection as well