Only cache static folders in Nginx

Reason: This fixes broken file uploads due to *.js not being parsed
see http://www.redmine.org/issues/13564