# Fastcgi\_cache and 304 response

**URL:** <https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465>\
**Category:** NGINX\
**Created:** [January 11, 2014, 10:46pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465 "2014-01-11T22:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 11, 2014, 10:46pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-304-response/238465/1 "2014-01-11T22:46:25Z")

</div>

Hi,

I use nginx + php-fpm (via fcgi) and needed responses from php-server  
are putting into cache. I have one thought, could be better send cached  
pages to clients from cache with 304 code instead 200.  
So we must know time when response has been cached (something like  
variable) and send 304 response as long as page will be in cache (this  
time we know).

Reading source codes I have not find any appropriate variable.

Any ideas?
