Maxim Dounin
June 23, 2014 12:46PM
Hello!

On Mon, Jun 23, 2014 at 10:56:17AM -0400, ariel_esp wrote:

> Hi,
> I am trying setup fastcgi_cache.
> Working fine.... BUT I need bypass some pages... when theses pages have
> header "no-cache".... but I dont know how to do this...
> The rules for bypass using urls, work fine.. like this:
>
> [code]
> if ($request_uri ~*
> "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)")
> {
> set $cache_uri 'null cache';
> }
> [/code]
>
> How can I bypass cache setting header page "no-cache" ?
> Example, in varnish work fine:
> if (req.http.Cache-Control ~ "no-cache")
> {
> return (pipe);
> }

http://nginx.org/r/fastcgi_cache_bypass

--
Maxim Dounin
http://nginx.org/

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

fastcgi_cache

ariel_esp June 23, 2014 10:56AM

Re: fastcgi_cache

Maxim Dounin June 23, 2014 12:46PM

Re: fastcgi_cache

ariel_esp June 23, 2014 01:08PM

Re: fastcgi_cache

Maxim Dounin June 23, 2014 10:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
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