Forum: NGINX how to make nginx not cache php file

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
perlish (Guest)
on 2009-05-28 06:46
(Received via mailing list)
Hi all:
  When I use nginx-0.7.59 as a revers proxy and cache server,it also
cache the php file,how to make it not cache php file ?
I thought the php file is not need to be cached.

Posted at Nginx Forum:,2437,2437#msg-2437
Jérôme Loyet (Guest)
on 2009-05-28 09:38
(Received via mailing list)
location ~ \.php$ {
  proxy_cache none;

it should do the trick

++ jerome
2009/5/28 perlish <removed_email_address@domain.invalid>:
Igor S. (Guest)
on 2009-05-28 09:43
(Received via mailing list)
On Thu, May 28, 2009 at 07:28:27AM +0200, J?r?me Loyet wrote:

> location ~ \.php$ {
>   proxy_cache none;

-   proxy_cache none;
+   proxy_cache off;
This topic is locked and can not be replied to.