Referencing gzip compressed CSS and JS in HTML/JSPs
===

I am using the [YUI compressor plugin][1] to compress and gzip JS and CSS files within my J2EE application.

However, I am not clear on how to reference them within my HTML/JSP files?

If I simply use the .gzip reference, the browser obviously complains saying - 

`Resource interpreted as Script but transferred with MIME type application/x-gzip`

The current reference looks like this (which throws the above error):

    <script type="text/javascript" src="/scripts/home.js.gz"></script>

  [1]: http://alchim.sourceforge.net/yuicompressor-maven-plugin/compress-mojo.html