Re: Nginx Proxy/FastCGI Caching X-Accel-Expires 0 or Off ?

2018-05-11 Thread c0nw0nk
Sergey Kandaurov Wrote: --- > > On 11 May 2018, at 04:30, c0nw0nk > wrote: > > > > So in order for my web application to tell Nginx not to cache a page > what > > header response should I be sending ? > > > > X-Accel-Expires: 0 > > X-Accel-Expi

Re: Nginx Proxy/FastCGI Caching X-Accel-Expires 0 or Off ?

2018-05-11 Thread Sergey Kandaurov
> On 11 May 2018, at 04:30, c0nw0nk wrote: > > So in order for my web application to tell Nginx not to cache a page what > header response should I be sending ? > > X-Accel-Expires: 0 > X-Accel-Expires: Off > > I read here it should be "OFF" > https://www.nginx.com/resources/wiki/start/topics/

Nginx Proxy/FastCGI Caching X-Accel-Expires 0 or Off ?

2018-05-10 Thread c0nw0nk
So in order for my web application to tell Nginx not to cache a page what header response should I be sending ? X-Accel-Expires: 0 X-Accel-Expires: Off I read here it should be "OFF" https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-expires But it does not mention if nu

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

2017-08-08 Thread Francis Daly
On Mon, Aug 07, 2017 at 04:47:30AM -0400, Etienne Robillard wrote: Hi there, > Thank you for your reply. What is the difference between: > > fastcgi_no_cache $http_pragma $http_authorization > > and > > fastcgi_no_cache $remote_user http://nginx.org/r/fastcgi_no_cache http://nginx.org/r/$http

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

2017-08-07 Thread Etienne Robillard
: 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

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

2017-08-06 Thread Francis Daly
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&q

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

2017-08-05 Thread Etienne Robillard
, I'm testing a OAuth2 middleware on my python web app and would like to disable fastcgi caching when the fastcgi variable REMOTE_USER is set. Is there any ways of doing this from nginx? Thanks in advance, Etienne -- Etienne Robillard tkad...@yandex.com http://www.isotopesoftwa

How to disable fastcgi caching for the logged user?

2017-08-05 Thread Etienne Robillard
Hi, I'm testing a OAuth2 middleware on my python web app and would like to disable fastcgi caching when the fastcgi variable REMOTE_USER is set. Is there any ways of doing this from nginx? Thanks in advance, Etienne -- Etienne Robillard tkad...@yandex.com http://www.isotopesoftwa

Re: FastCGI caching mistakes...

2015-03-02 Thread lolallalol
Ok, it works for query string now. I saw that $request_uri already contains query string. location ~ ^/purge(/.*) { fastcgi_cache_purge FASTCGICACHE "$scheme$request_method$host$1$is_args$args#$http_range$isAjax"; } I use $1$is_args$args like $request_uri. But special characters are probably e

FastCGI caching mistakes...

2015-03-02 Thread lolallalol
Hi, I encountered several failure about fastcgi caching. Requests with special characters are not cached. Same for requests with query string. When I try to purge those URLs, each one send me a 404. This is my caching key used in a location directive : fastcgi_cache_key "$scheme$request_m

Re: FastCGI caching and X-Accel-Redirect responses

2014-07-24 Thread Roman Arutyunyan
On 24 Jul 2014, at 14:31, gwilym wrote: > I have Nginx sitting in front of a php5-fpm pool via fastcgi. The > application will serve static assets by means of responding with an > X-Accel-Redirect to an internal location. > > My intention is to avoid repeatedly hitting the app for a particular

FastCGI caching and X-Accel-Redirect responses

2014-07-24 Thread gwilym
I have Nginx sitting in front of a php5-fpm pool via fastcgi. The application will serve static assets by means of responding with an X-Accel-Redirect to an internal location. My intention is to avoid repeatedly hitting the app for a particular URL for short periods of time to cover bursts of traf

Re: fastcgi caching

2014-02-23 Thread Maxim Dounin
Hello! On Fri, Feb 21, 2014 at 12:00:47PM -0800, Grant wrote: > I'm using the following config to cache only /piwik/piwik.php: > > fastcgi_cache_path /var/cache/php-fpm levels=1:2 keys_zone=piwik:10m; > > fastcgi_cache_key "$scheme$request_method$host$request_uri"; > > location /piwik/piwik.ph

fastcgi caching

2014-02-21 Thread Grant
I'm using the following config to cache only /piwik/piwik.php: fastcgi_cache_path /var/cache/php-fpm levels=1:2 keys_zone=piwik:10m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; location /piwik/piwik.php { fastcgi_cache piwik; add_header X-Cache $upstream_cache_status;