       }
       """
 
+createAsset = (inDevEnvironment) ->
+  return "" if inDevEnvironment
+  return """
+expires 1M; # 1 month
+\t\tadd_header Cache-Control \"public\";
+\t\tlocation ~* \.(map)$ {
+\t\t  return 404;
+\t\t  access_log off;
+\t\t}"""
+
 module.exports.create = (KONFIG, environment)->
   workers = KONFIG.workers
 

      }

      location @assets {
        proxy_pass            http://s3.amazonaws.com/koding-assets$uri;
        proxy_set_header      X-Real-IP       $remote_addr;
        proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_connect_timeout 1;

        resolver 8.8.8.8;
      }

      # no need to send static file serving requests to webserver
      # serve static content from nginx
      location /a/ {
        #{createAsset(inDevEnvironment)}
        root #{KONFIG.projectRoot}/website/;
        try_files $uri @assets;
        # no need to send those requests to nginx access_log
