Welcome! Log In Create A New Profile

Advanced

Different cache time for different locations

Nuno Neves
August 31, 2012 12:48PM
Hello,

All my requests passes in the php location to fastcgi ( location ~
\.php$ ) and I would like to have different cache time for different
requests.

As an example :

/ -> cache time for 10 minutes
/about -> cache time for 1 day
/products -> cache time for 1h

Right now I have the same cache for all requests: fastcgi_cache_valid
200 302 10m;

How am I able to accomplish this setup?

Thanks

Nuno

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Different cache time for different locations

Nuno Neves August 31, 2012 12:48PM

Re: Different cache time for different locations

Maxim Dounin August 31, 2012 01:10PM

Re: Different cache time for different locations

Nuno Neves September 20, 2012 05:32PM

Re: Different cache time for different locations

António P. P. Almeida September 20, 2012 05:58PM

Re: Different cache time for different locations

Nuno Neves September 21, 2012 09:42AM

Re: Different cache time for different locations

António P. P. Almeida September 21, 2012 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready