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
> 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/
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
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
:
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
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
,
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
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
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
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
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
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
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
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;
14 matches
Mail list logo