# Disable HTTP 304 response

**URL:** <https://www.ruby-forum.com/t/disable-http-304-response/177563>\
**Category:** NGINX\
**Created:** [October 20, 2009, 10:26am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563 "2009-10-20T10:26:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![demoversion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4491bb/32.png) [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Post date:** [October 20, 2009, 10:26am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/1 "2009-10-20T10:26:23Z")

</div>

Hello!

I want to disable nginx returning a 304 response to the client, as I am  
interested in a higher amount of bandwidth coming through my site. In  
Apache i did that by removing the if-modified-since request header, but  
I can’t find an alternatinve in nginx.

Is there any?

Thanks in advance,  
Igor K…

---

<div class="post-metadata">

**Author:** ![demoversion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4491bb/32.png) [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Post date:** [October 20, 2009, 10:46am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/2 "2009-10-20T10:46:17Z")

</div>

Change it to a 444 maybe? That’ll disable any response, though…

---

<div class="post-metadata">

**Author:** ![demoversion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4491bb/32.png) [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Post date:** [October 20, 2009, 11:38am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/3 "2009-10-20T11:38:23Z")

</div>

Hello!

On Tue, Oct 20, 2009 at 12:19:18PM +0400, Igor K. wrote:

> Hello!
> 
> I want to disable nginx returning a 304 response to the client, as I  
> am interested in a higher amount of bandwidth coming through my  
> site. In Apache i did that by removing the if-modified-since request  
> header, but I can’t find an alternatinve in nginx.
> 
> Is there any?

if\_modified\_since off;

[http://wiki.nginx.org/NginxHttpCoreModule#if\_modified\_since](http://wiki.nginx.org/NginxHttpCoreModule#if_modified_since)

Maxim D.

---

<div class="post-metadata">

**Author:** ![demoversion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4491bb/32.png) [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Post date:** [October 20, 2009, 11:38am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/4 "2009-10-20T11:38:23Z")

</div>

Yes, that won’t work. I need a standard HTTP 200 response with all the  
content passed to the client, regardless of the If-Modified-Since  
request header.

Posted at Nginx Forum:

> **[Re: Disable HTTP 304 response](https://forum.nginx.org/read.php?2,15143,15152#msg-15152)**
>
> Hello! I want to disable nginx returning a 304 response to the client, as I am interested in a higher amount of bandwidth coming through my site. In Apache i did that by removing the if-modified-since request header, but I can't find an alternatinve...

---

<div class="post-metadata">

**Author:** ![demoversion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4491bb/32.png) [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Post date:** [October 20, 2009, 11:45am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/5 "2009-10-20T11:45:24Z")

</div>

Maxim D. wrote:

> > Is there any?
> 
> if\_modified\_since off;
> 
> [Module ngx\_http\_core\_module](http://wiki.nginx.org/NginxHttpCoreModule#if_modified_since)
> 
> Maxim D.

Thanks a lot, Maxim!

---

<div class="post-metadata">

**Author:** ![Nova](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c5a1d2/32.png) [@Nova](https://www.ruby-forum.com/u/Nova)\
**Post date:** [October 1, 2022, 9:27am UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/6 "2022-10-01T09:27:35Z")

</div>

There are different reasons people encounter [304 errors](https://appuals.com/http-304-not-modified/). Like it can be a reason for a third-party application or software or a virus on your system. The best thing to do is clear your browser cache if you are facing this issue. In case you are using Google Chrome, you can make it work by navigating to the menu icon in a new tab and navigating to More tools \> Clear browsing data: Now, in the window that pops up, verify that All time is the selected option for the Time range drop-down menu and make sure that all three options are chosen before you are about to tap the option of Clear data.

---

<div class="post-metadata">

**Author:** ![Lagmar](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/lagmar/32/1317_2.png) [@Lagmar](https://www.ruby-forum.com/u/Lagmar)\
**Post date:** [October 2, 2022, 5:19pm UTC](https://www.ruby-forum.com/t/disable-http-304-response/177563/7 "2022-10-02T17:19:33Z")

</div>

You need to eliminate the problem itself, not its consequences.
