# Proxy with header If-Modified-Since

**URL:** <https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524>\
**Category:** NGINX\
**Created:** [September 6, 2011, 4:40pm UTC](https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524 "2011-09-06T16:40:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 6, 2011, 4:40pm UTC](https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524/1 "2011-09-06T16:40:41Z")

</div>

hi all,

I find that when the cache is expired,nginx request completely to  
backend for fresh cache even the file wasn’t modified.Could nginx  
request to backend with header “If-Modified-Since” when the cache is  
expired? If this,backend will response with code 304, nginx should deal  
with the 304 response.

2011-09-06

chinix

---

<div class="post-metadata">

**Author:** ![chinix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@chinix](https://www.ruby-forum.com/u/chinix)\
**Post date:** [September 6, 2011, 5:27pm UTC](https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524/2 "2011-09-06T17:27:41Z")

</div>

Hello!

On Tue, Sep 06, 2011 at 10:39:56PM +0800, chinix wrote:

> hi all,
> 
> I find that when the cache is expired,nginx request completely  
> to backend for fresh cache even the file wasn’t modified.Could  
> nginx request to backend with header “If-Modified-Since” when  
> the cache is expired? If this,backend will response with code  
> 304, nginx should deal with the 304 response.

This is not currently supported.

Maxim D.
