Odd one, I hope someone can help.
I'm using a PHP file to generate CSS, which I want to gzip before serving.
Here's some example code:
Now, I know I don't need the ob_gzhandler, as DH gzips. My problem is that if I include the text/css header then nothing is gzipped. If I leave it out then the file is compressed nicely, but the browser won't recognise the css rules.
This is cross browser, and I've tried all sorts of combinations of different gzip methods, and the order of the headers but I just can't get it to work. I've tried a link rel=stylesheet and an @import, and even meddled with .htaccess!
If I add the css header it won't compress, if I leave the header out it will compress but will not be recognised as CSS.
Is this a DH peculiarity or have I done something very silly?