Welcome! Log In Create A New Profile

Advanced

fastcgi cache based on header

Tomasz Pajor
March 23, 2010 12:24PM
Hello,

Is there by any chance a way make something like this?


location / {
try_files $uri $uri/ @fallback;
fastcgi_pass app;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include base/fastcgi_params;

if ($http_app_cache = "1") {
fastcgi_cache landingpage;
fastcgi_cache_key $http_host$request_uri;
fastcgi_cache_valid 200 2m;
fastcgi_cache_valid 404 1m;
fastcgi_cache_valid 500 1m;
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_ignore_headers Expires Cache-Control;
}
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi cache based on header

Tomasz Pajor March 23, 2010 12:24PM

Re: fastcgi cache based on header

agentzh March 23, 2010 10:48PM

Re: fastcgi cache based on header

Tomasz Pajor March 24, 2010 03:30AM

Re: fastcgi cache based on header

Maxim Dounin March 24, 2010 06:28AM

Re: fastcgi cache based on header

Tomasz Pajor March 25, 2010 04:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready