Cache as failover

Kruglov Eugenie ekruglov at gmail.com
Mon Dec 21 14:40:03 MSK 2009


        proxy_ignore_headers    "Cache-Control" "Expires";
        proxy_hide_header       'Set-Cookie';
        proxy_cache_key
"$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
        proxy_cache_valid       200 302 301 304 1m;
        proxy_cache_valid       any 0m;
        proxy_cache_use_stale   error timeout invalid_header http_500
http_502 http_503 http_504;
        proxy_cache_path cache/ levels=2:2 keys_zone=cache:256m inactive=7d
max_size=65536m;
        server {
                server_name ...;
                location / {
                        proxy_pass http://...;
                        proxy_cache cache;
                }
        }

proxy_cache_use_stale: cached content will return instead of proxying in
case of 502/503/504 errors.


On Mon, Dec 21, 2009 at 2:22 PM, mfeldheim <nginx-forum at nginx.us> wrote:

> Any ideas? Could proxy_store (
> http://wiki.nginx.org/NginxHttpProxyModule#proxy_store ) help me in that
> case?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,31268,32363#msg-32363
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Faithfully yours, Eugenie
ICQ #701217
GTalk ekruglov at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091221/058c2af7/attachment.html>


More information about the nginx mailing list