Nginx does not Cache Google Adsense and Some other widgets - help

Alex alex.thegreat at ambix.net
Tue Oct 4 15:41:44 UTC 2011


Nginx 1.0.x

I have set up my cache like this:


proxy_cache_key $host$uri$is_args$args;
proxy_cache_methods POST;
proxy_cache            STATIC;
proxy_cache_valid      200  1d;
proxy_cache_use_stale  error timeout invalid_header updating http_500  
http_502 http_503 http_504;

The URLs that are not being cached are of this form:

URI?id=parameter&h=parameter  or URI? 
id=parameter&h=parameter&w=parameter


Any ideas how I can configure the cache key so that uris with those  
parameters get cached too?

Thanks,

Alex



More information about the nginx mailing list