Welcome! Log In Create A New Profile

Advanced

Re: How to disable fastcgi caching for the logged user?

Francis Daly
August 06, 2017 05:50AM
On Sat, Aug 05, 2017 at 03:24:28PM -0400, Etienne Robillard wrote:

Hi there,

> The $http_pragma is not properly defined in
> http://nginx.org/en/docs/varindex.html

It's the one after "$http2" and before "$https".

> Is that a custom variable or is defined in nginx?

$http_anything is defined in nginx if the incoming request has a header
that maps to "anything".

> I was hoping of doing something like:
>
> fastcgi_no_cache $http_pragma $remote_user;
>
> What do you think?

The documentation at http://nginx.org/r/fastcgi_no_cache describes what
that directive should do.

You want to disable fastcgi caching when the fastcgi variable REMOTE_USER
is set.

Your config presumably includes something like "fastcgi_param REMOTE_USER
$something".

In that case, you want "fastcgi_no_cache $something".

Good luck with it,

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

How to disable fastcgi caching for the logged user?

Etienne Robillard August 05, 2017 02:44PM

Re: How to disable fastcgi caching for the logged user?

Etienne Robillard August 05, 2017 03:26PM

Re: How to disable fastcgi caching for the logged user?

Francis Daly August 06, 2017 05:50AM

Re: How to disable fastcgi caching for the logged user?

Etienne Robillard August 07, 2017 04:50AM

Re: How to disable fastcgi caching for the logged user?

Francis Daly August 08, 2017 02:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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