# How to get gzip\_static to recognize compressed files not ending with .gz?

**URL:** <https://www.ruby-forum.com/t/how-to-get-gzip-static-to-recognize-compressed-files-not-ending-with-gz/209269>\
**Category:** NGINX\
**Created:** [July 10, 2011, 7:58am UTC](https://www.ruby-forum.com/t/how-to-get-gzip-static-to-recognize-compressed-files-not-ending-with-gz/209269 "2011-07-10T07:58:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 10, 2011, 7:58am UTC](https://www.ruby-forum.com/t/how-to-get-gzip-static-to-recognize-compressed-files-not-ending-with-gz/209269/1 "2011-07-10T07:58:59Z")

</div>

I’m working with a grails plugin that is a few years old and compresses  
.js and .css files in compressed bundles the naming convention it  
follows is \*.gz.js and \*.gz.css and doesn’t have an option for  
configuring this.

Is there a way to configure it so that Nginx will check these for  
compression? As it is now the uncompression is not being applied to  
these files.

Thanks

Posted at Nginx Forum:

> **[How to get gzip\_static to recognize compressed files not ending with .gz?](https://forum.nginx.org/read.php?2,212049,212049#msg-212049)**
>
> I'm working with a grails plugin that is a few years old and compresses .js and .css files in compressed bundles the naming convention it follows is \*.gz.js and \*.gz.css and doesn't have an option for configuring this. Is there a way to configure it...

---

<div class="post-metadata">

**Author:** ![sdsdsd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@sdsdsd](https://www.ruby-forum.com/u/sdsdsd)\
**Post date:** [July 15, 2011, 6:53pm UTC](https://www.ruby-forum.com/t/how-to-get-gzip-static-to-recognize-compressed-files-not-ending-with-gz/209269/2 "2011-07-15T18:53:39Z")

</div>

Did you ever get anywhere with this? Just wondering because I’m stuck in  
the  
same boat with a legacy grails app (and presumably with the same  
uiperformance plugin) running behind nginx, and I’m about to begin  
investigating solutions myself…

-charlie

On Jul 9, 2011 10:58 PM, “sd” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

I’m working with a grails plugin that is a few years old and compresses  
.js and .css files in compressed bundles the naming convention it  
follows is \*.gz.js and \*.gz.css and doesn’t have an option for  
configuring this.

Is there a way to configure it so that Nginx will check these for  
compression? As it is now the uncompression is not being applied to  
these files.

Thanks

Posted at Nginx Forum:

> **[How to get gzip\_static to recognize compressed files not ending with .gz?](https://forum.nginx.org/read.php?2,212049,212049#msg-212049)**
>
> I'm working with a grails plugin that is a few years old and compresses .js and .css files in compressed bundles the naming convention it follows is \*.gz.js and \*.gz.css and doesn't have an option for configuring this. Is there a way to configure it...
