Welcome! Log In Create A New Profile

Advanced

Re: $skip_cache define home page

April 01, 2015 07:41PM
Francis Daly Wrote:
-------------------------------------------------------
> On Sun, Mar 22, 2015 at 06:35:31AM -0400, carnagel wrote:
>
> Hi there,
>
> > I understand how to skip cache on cookies, POST, query strings, urls
> > containing string etc
>
> How do you skip cache on urls containing strings?

# Don't cache uris containing the following segments
if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") {
set $skip_cache 1;
}



>
> > But how do you define the home page itself in $skip_cache please?
>
> What url or urls is "the home page"?

the root website page http://www.mysite.com/

>
> f
> --
> Francis Daly francis@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



I guess another way of asking my question "How do I define bypass fastcgi cache on a page with no url string, ie: the root website page?"
Subject Author Posted

$skip_cache define home page

carnagel March 22, 2015 06:35AM

Re: $skip_cache define home page

Francis Daly March 23, 2015 07:00PM

Re: $skip_cache define home page

carnagel April 01, 2015 07:41PM

Re: $skip_cache define home page

Francis Daly April 02, 2015 06:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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