Welcome! Log In Create A New Profile

Advanced

Re: $skip_cache define home page

Francis Daly
April 02, 2015 06:14AM
On Wed, Apr 01, 2015 at 07:41:57PM -0400, carnagel wrote:
> 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;
> }

If that works, then

if ($request_uri = "/") {
set $skip_cache 1;
}

should work the same way.

> 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?"

location = / {
# the configuration here is for the root website page
}

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 176
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