It's pretty simple: I want to simulate the page-size of my website using grunt-contrib-connect before I deploy the site onto Apache. 

With Apache, it's pretty straight-forward to turn on gzip-compression. However, with grunt-contrib-connect, I haven't found a way to make it work. Here's what I've tried so far in my Gruntfile.js:

```
var compression = require('compression');

...
// The actual grunt server settings
connect: {
  dev: {
    options: {
      open: false,
      base: 'dev',
      port: '4000',
      hostname: 'localhost',
      livereload: 35729,
      onCreateServer: [compression()]
    }
  }
}

```

I've also tried:

```
connect: {
  dev: {
    options: {
      open: false,
      base: 'dev',
      port: '4000',
      hostname: 'localhost',
      livereload: 35729,
      middleware: [compression()]
    }
  }
}

```

I can serve the files up correctly, but when I use Chrome Dev tools to look at the Network requests, I can see that no compression is being applied to any files served by the connect webserver. What am I doing wrong?