# Nginx-0.8.31

**URL:** <https://www.ruby-forum.com/t/nginx-0-8-31/180657>\
**Category:** NGINX\
**Created:** [December 25, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/nginx-0-8-31/180657 "2009-12-25T15:40:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 25, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/nginx-0-8-31/180657/1 "2009-12-25T15:40:18Z")

</div>

Changes with nginx 0.8.31 23 Dec  
2009

```
*) Feature: now the "error_page" directive may redirect the 301 and 

```

302  
responses.

```
*) Feature: the $geoip_city_continent_code, $geoip_latitude, and
   $geoip_longitude variables.
   Thanks to Arvind Sundararajan.

*) Feature: now the ngx_http_image_filter_module deletes always EXIF
   and other application specific data if the data consume more than 

```

5%  
of a JPEG file.

```
*) Bugfix: nginx closed a connection if a cached response had an 

```

empty  
body.  
Thanks to Piotr S…

```
*) Bugfix: nginx might not be built by gcc 4.x if the -O2 or higher
   optimization option was used.
   Thanks to Maxim D. and Denis F. Latypoff.

*) Bugfix: regular expressions in location were always tested in
   case-sensitive mode; the bug had appeared in 0.8.25.

*) Bugfix: nginx cached a 304 response if there was the 

```

“If-None-Match”  
header line in a proxied request.  
Thanks to Tim Dettrick and David K…

```
*) Bugfix: nginx/Windows tried to delete a temporary file twice if 

```

the  
file should replace an already existent file.

–  
Igor S.  
[http://sysoev.ru/en/](http://sysoev.ru/en/)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 25, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/nginx-0-8-31/180657/2 "2009-12-25T15:43:51Z")

</div>

Hello!

On Wed, Dec 23, 2009 at 06:53:29PM +0300, Igor S. wrote:

[…]

> ```
> *) Bugfix: nginx closed a connection if a cached response had an empty 
> body.
> Thanks to Piotr S..
> 
> ```

I belive setting r-\>header\_only here is wrong aproach. At least  
it breaks addition filter module for such responses.

Also you probably want to consider doubled last chunk for stale  
responses as fixed here:

> **[(bug?)Timeout when proxy-pass 0 byte file](http://mailman.nginx.org/pipermail/nginx/2009-October/015789.html)**

Maxim D.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 29, 2009, 4:16am UTC](https://www.ruby-forum.com/t/nginx-0-8-31/180657/3 "2009-12-29T04:16:35Z")

</div>

Hello Maxim,

> [(bug?)Timeout when proxy-pass 0 byte file](http://nginx.org/pipermail/nginx/2009-October/015789.html)

You are right, this will break addition filter module.

Your patch works as expected, I wonder why it wasn’t applied in the  
first  
place?

Anyway, I modified your patch a little to avoid unnessesary call to  
ngx\_pcalloc. Hopefully Igor will include this in nginx-0.8.32 😉

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>
