# Nginx caching in milliseconds

**URL:** <https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432>\
**Category:** NGINX\
**Created:** [July 14, 2012, 6:14am UTC](https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432 "2012-07-14T06:14:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 14, 2012, 6:14am UTC](https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432/1 "2012-07-14T06:14:31Z")

</div>

Hello,

would it be possible to cache with nginx below 1 second ? I mean in the  
hundreds of milliseconds ?  
For example:  
proxy\_cache\_valid 200 301 302 500ms;

Have a good day,

JC

–  
Jean-Christophe Petit  
VP R&D et DSI

GROUPE SYSPARK  
The Power of Internet Engineering / La Force du Gnie Internet  
606 Cathcart, Suite 510  
Montreal, Quebec H3B 1K9 - CANADA  
T: 1 514 875 8755  
C: 1 514 575 5560  
F: 1 514 875 8775

---

<div class="post-metadata">

**Author:** ![Jean-Christophe\_Pet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@Jean-Christophe\_Pet](https://www.ruby-forum.com/u/Jean-Christophe_Pet)\
**Post date:** [July 17, 2012, 10:28am UTC](https://www.ruby-forum.com/t/nginx-caching-in-milliseconds/221432/2 "2012-07-17T10:28:27Z")

</div>

On 14.07.2012, at 8:13, Jean-Christophe Petit wrote:

> Hello,
> 
> would it be possible to cache with nginx below 1 second ? I mean in the hundreds  
> of milliseconds ?  
> For example:  
> proxy\_cache\_valid 200 301 302 500ms;

No, it seems it makes no sense in proxy\_cache\_valid case, also msec  
granularity limits  
max time to ~ 24.8 days which may be small for proxy\_cache\_valid
