# Redirect 302 then redirect 304

**URL:** <https://www.ruby-forum.com/t/redirect-302-then-redirect-304/139767>\
**Category:** Rails\
**Created:** [June 6, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/redirect-302-then-redirect-304/139767 "2008-06-06T20:44:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdoconnor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jdoconnor](https://www.ruby-forum.com/u/jdoconnor)\
**Post date:** [June 6, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/redirect-302-then-redirect-304/139767/1 "2008-06-06T20:44:09Z")

</div>

I have multiple instances where I need use redirect\_to in a controller,  
and two of them exhibit the problem that I’m describing (the two that  
update the record on which their acting)

On my development server (mac, webrick) I see two redirects, and the  
client gets data back

127.0.0.1 - - [06/Jun/2008:13:32:16 CDT] “POST /events/49 HTTP/1.1” 302  
97  
[http://127.0.0.1:3000/events/49/edit](http://127.0.0.1:3000/events/49/edit) → /events/49  
127.0.0.1 - - [06/Jun/2008:13:32:16 CDT] “GET /events/49 HTTP/1.1” 304 0  
[http://127.0.0.1:3000/events/49/edit](http://127.0.0.1:3000/events/49/edit) → /events/49

On my deployment server (linux, apache) (running in dev and production  
modes – both were tested), I see a redirect to the same id with status  
302 only, and the fcgi instance returns an error (nothing in log  
indicating it).

What would cause the second (304) redirect?

Thank you,  
Jay
