On 16 Ago 2011 19h18 WEST, nginx-forum@nginx.us wrote:
> Thanks. Now it's working. I guess my mistake was in additional
> quotes.
No. Your mistake was the expires 1y directive. The expires directive
"automagically" sets a Cache-Control header.
You can do it without variables, like this:
location ~* ^.+\.(?:jpe?g|gif|gz|zip|flv|rar|wmv|avi|css|swf|png|htc|ico|mpeg|mpg|txt|mp3|mov|js)$ {
root /opt/lampp/htdocs/randevu/public;
if ($arg_no_caching) {
add_header Cache-Control no-cache;
break;
}
add_header Cache-Control max-age=31536000; # 1 year
}
--- appa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx