<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">You will need to be a little bit more specific than 'this is not working' to get some help.<br><a href="http://www.catb.org/esr/faqs/smart-questions.html">http://www.catb.org/esr/faqs/smart-questions.html</a><br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Btw, the documentation show the default value for proxy_cache_key if none is provided, and it already takes arguments (and thus arguments' separator) into account:<br><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_key" target="_blank">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_key</a><br><a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_uri" target="_blank">http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_uri</a><br></div><div class="gmail_extra"><div><div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Wed, Sep 2, 2015 at 8:40 AM, log <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, unfortunately this is not working...<br>
<br>
<a href="http://example.com/style.css?ver=4.3" rel="noreferrer" target="_blank">http://example.com/style.css?ver=4.3</a><br>
<a href="http://example.com/jquery-migrate.min.js?ver=1.2.1" rel="noreferrer" target="_blank">http://example.com/jquery-migrate.min.js?ver=1.2.1</a><br>
<br>
<br>
biazus Wrote:<br>
-------------------------------------------------------<br>
> Please try to remove $ in the end of the expression:<br>
><br>
> something like this:<br>
><br>
> location ~ .*\.(js|css) {<br>
> expires 7d;<br>
> }<br>
><br>
> Also, make sure you are using args in the cache key:<br>
><br>
> proxy_cache_key "$host$uri$is_args$args";<br>
><br>
> Regards,<br>
> Biazus<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,261338,261374#msg-261374" rel="noreferrer" target="_blank">http://forum.nginx.org/read.php?2,261338,261374#msg-261374</a><br>
<div><div><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div></div>