# Generating/Updating .gz files for gzip\_static

**URL:** <https://www.ruby-forum.com/t/generating-updating-gz-files-for-gzip-static/237064>\
**Category:** NGINX\
**Created:** [October 22, 2013, 2:05pm UTC](https://www.ruby-forum.com/t/generating-updating-gz-files-for-gzip-static/237064 "2013-10-22T14:05:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [October 22, 2013, 2:05pm UTC](https://www.ruby-forum.com/t/generating-updating-gz-files-for-gzip-static/237064/1 "2013-10-22T14:05:05Z")

</div>

I’m new to nginx. I love the gzip\_static option and I;ve been thinking  
about  
the best way to generate, update and delete these files.  
I wrote an article here:  
[http://www.richnetapps.com/generation-of-gzip-files-for-nginx/](http://www.richnetapps.com/generation-of-gzip-files-for-nginx/)

My method uses inotifywait.

I hope it’s useful and that I didn’t make any glaring errors.

Posted at Nginx Forum:

> **[Generating/Updating .gz files for gzip\_static](https://forum.nginx.org/read.php?2,243987,243987#msg-243987)**
>
> I'm new to nginx. I love the gzip\_static option and I;ve been thinking about the best way to generate, update and delete these files. I wrote an article here: http://www.richnetapps.com/generation-of-gzip-files-for-nginx/ My method uses inotifywait....

---

<div class="post-metadata">

**Author:** ![gaspy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/439d5e/32.png) [@gaspy](https://www.ruby-forum.com/u/gaspy)\
**Post date:** [October 22, 2013, 5:34pm UTC](https://www.ruby-forum.com/t/generating-updating-gz-files-for-gzip-static/237064/2 "2013-10-22T17:34:58Z")

</div>

— Original message —  
From: “gaspy” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: 22 October 2013, 15:12:54

> I’m new to nginx. I love the gzip\_static option and I;ve been thinking about  
> the best way to generate, update and delete these files.  
> I wrote an article here:  
> [http://www.richnetapps.com/generation-of-gzip-files-for-nginx/](http://www.richnetapps.com/generation-of-gzip-files-for-nginx/)
> 
> My method uses inotifywait.
> 
> I hope it’s useful and that I didn’t make any glaring errors.

Nice implementation. But it is for Linux. What about FreeBSD? May be  
do you know any solution? (I think this is kqueue-based).
