Forum: NGINX how to make nginx not cache php file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 perlish (Guest)
on 2009-05-28 04: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:
http://forum.nginx.org/read.php?2,2437,2437#msg-2437
Fcaa940f447c1c76afb8ee2448ba0461?d=identicon&s=25 Jérôme Loyet (Guest)
on 2009-05-28 07:38
(Received via mailing list)
location ~ \.php$ {
  proxy_cache none;
}

it should do the trick

++ jerome
2009/5/28 perlish <nginx-forum@nginx.us>:
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-28 07: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.